-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Welcome to the Madrid's Consul wiki!
- Check your computer IP (i.e. 192.168.1.1)
- Launch rails server
rails server -b 192.168.1.1
- On your device open
http://192.168.1.1:3000
and test
For a given FILENAME, FOLDERS structure, and ENV (decidepre/decidepro)
- Create the FOLDERS structure
ssh ENV
cd participacion/shared/public/system
mkdir FOLDERS
- Upload file
scp FILENAME.pdf deploy@ENV:/aytomad/app/participa/participacion/shared/public/system/FOLDERS/FILENAME.pdf
If you get an error while trying to ssh a server, you may have to ssh the proxy again:
ssh decideproxy ssh-add
To do a deploy to an ENV (preproduction/production):
- Cleanup releases
cap ENV deploy:cleanup
- Run the deploy script (preproduction will deploy master branch, production will deploy stable)
cap ENV deploy
To deploy an specific branch to an ENV:
cap ENV deploy branch=BRANCH_NAME
bin/rake csv:export RAILS_ENV=preproduction
ssh decidepre
cd participacion/current
bin/rails c preproduction
Check current status with: https://github.com/AyuntamientoMadrid/consul/compare/master...consul:master
Ensure you have a consul remote like:
$ git remote -v
consul [email protected]:consul/consul.git (fetch)
consul [email protected]:consul/consul.git (push)
origin [email protected]:AyuntamientoMadrid/consul.git (fetch)
origin [email protected]:AyuntamientoMadrid/consul.git (push)
- Create new branch from master and merge consul's master branch:
git checkout master
git pull
git checkout -b consul_pull
git fetch consul
git merge consul/master
- Fix any merge conflicts, and
git push
- Fill PR description with included Consul's PR links https://github.com/AyuntamientoMadrid/consul/compare/master...consul_pull
- After merge, go to production by merging master to stable: https://github.com/AyuntamientoMadrid/consul/compare/stable...master
rake sitemap:refresh:no_ping
Centro de atención de Incidencias de Informática y Comunicaciones del Ayuntamiento de Madrid (SICAM)
Phone:
33033 if calling from within a Government building
915133033 if calling from outside a Government building
Officing hours:
07:30 - 22.00 Monday to Friday