Skip to content
Raimond Garcia edited this page Sep 11, 2017 · 24 revisions

Welcome to the Madrid's Consul wiki!

Test localhost on mobile/tablet

  1. Check your computer IP (i.e. 192.168.1.1)
  2. Launch rails server rails server -b 192.168.1.1
  3. On your device open http://192.168.1.1:3000 and test

Upload file to shared folder across preproduction or production servers

For a given FILENAME, FOLDERS structure, and ENV (decidepre/decidepro)

  1. Create the FOLDERS structure
ssh ENV
cd participacion/shared/public/system
mkdir FOLDERS
  1. Upload file
scp FILENAME.pdf deploy@ENV:/aytomad/app/participa/participacion/shared/public/system/FOLDERS/FILENAME.pdf

Deploy

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):

  1. Cleanup releases
cap ENV deploy:cleanup
  1. 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

Execute Rakes on servers

bin/rake csv:export RAILS_ENV=preproduction

Execute Rails Console

ssh decidepre
cd participacion/current
bin/rails c preproduction

Consul => Madrid pull

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)

  1. 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
  1. Fix any merge conflicts, and git push
  2. Fill PR description with included Consul's PR links https://github.com/AyuntamientoMadrid/consul/compare/master...consul_pull
  3. After merge, go to production by merging master to stable: https://github.com/AyuntamientoMadrid/consul/compare/stable...master

Refresh sitemap

rake sitemap:refresh:no_ping

Ask for help to IAM (Informática Ayuntamiento de Madrid)

Regarding databases:

[email protected]

Regarding new requests

[email protected]

Regarding malfunctions

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
Clone this wiki locally