-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Welcome to the Madrid's Consul wiki!
https://github.com/AyuntamientoMadrid/consul/wiki/How-to-handle-flaky-specs
- 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
- Get the url... something like https://decide.madrid.es/system/FOLDERS/FILENAME.pdf
If you get an error while trying to ssh a server or do a capistrano deployment, 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 upstream
git fetch consul
git merge consul/master
- Fix any merge conflicts, and
git push
- Fill PR description with included Consul's PR links and
Consul pull ⬇️
title https://github.com/AyuntamientoMadrid/consul/compare/master...upstream - After merging that PR, open a new one from master to stable with title
Deploy to Pro 🚀
: https://github.com/AyuntamientoMadrid/consul/compare/stable...master
rake sitemap:refresh:no_ping
scp deploy@decidepro:~/participacion/current/log/production.log ~/your_local_directory