Created
November 15, 2014 16:07
-
-
Save nafu/0f293f41687e26b7798f to your computer and use it in GitHub Desktop.
circle.yml for rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployment: | |
production: | |
branch: master | |
commands: | |
- heroku maintenance:on --app production | |
- heroku scale worker=0 --app production | |
- git push -f [email protected]:production.git $CIRCLE_SHA1:refs/heads/master | |
- heroku run 'rake db:migrate; rake db:seed' --app production | |
- heroku maintenance:off --app production | |
staging: | |
branch: staging | |
commands: | |
- heroku maintenance:on --app staging | |
- heroku scale worker=0 --app staging | |
- git push -f [email protected]:staging.git $CIRCLE_SHA1:refs/heads/master | |
- heroku run 'rake db:migrate; rake db:seed' --app staging | |
- heroku maintenance:off --app staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment