Created
January 4, 2015 03:47
-
-
Save benjiwheeler/717fed6278116aa10c5e to your computer and use it in GitHub Desktop.
Canonical circle.yml
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
general: | |
build_dir: . | |
machine: | |
environment: | |
RAILS_ENV: "test" | |
RACK_ENV: "test" | |
# note: DON'T need to have heroku: section anywhere because we use --app heroku commands. | |
deployment: | |
staging: | |
branch: staging | |
commands: | |
- heroku maintenance:on --app technosocialstaging | |
- heroku scale worker=0 --app technosocialstaging | |
- git push git@heroku.com:technosocialstaging.git $CIRCLE_SHA1:refs/heads/master | |
- heroku run rake assets:precompile --app technosocialstaging | |
- heroku run rake db:migrate --app technosocialstaging | |
- heroku scale worker=1 --app technosocialstaging | |
- heroku maintenance:off --app technosocialstaging | |
production: | |
branch: production | |
commands: | |
- heroku maintenance:on --app technosocial | |
- heroku scale worker=0 --app technosocial | |
- git push git@heroku.com:technosocial.git $CIRCLE_SHA1:refs/heads/master | |
- heroku run rake assets:precompile --app technosocial | |
- heroku run rake db:migrate --app technosocial | |
- heroku scale worker=1 --app technosocial | |
- heroku maintenance:off --app technosocial | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment