Skip to content

Instantly share code, notes, and snippets.

@nafu
Created November 15, 2014 16:07
Show Gist options
  • Save nafu/0f293f41687e26b7798f to your computer and use it in GitHub Desktop.
Save nafu/0f293f41687e26b7798f to your computer and use it in GitHub Desktop.
circle.yml for rails
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