Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created September 30, 2013 00:38
Show Gist options
  • Select an option

  • Save jhubert/6757968 to your computer and use it in GitHub Desktop.

Select an option

Save jhubert/6757968 to your computer and use it in GitHub Desktop.
Our circle.yml file for Continuous Integration with Heroku and CircleCI
deployment:
deploy_staging:
branch: staging
commands:
- heroku maintenance:on --app OUR_STAGING_APP
- git push git@heroku.com:OUR_STAGING_APP.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app OUR_STAGING_APP
- heroku restart --app OUR_STAGING_APP
- heroku maintenance:off --app OUR_STAGING_APP
deploy_production:
branch: production
commands:
- heroku maintenance:on --app OUR_PRODUCTION_APP
- git push git@heroku.com:OUR_PRODUCTION_APP.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app OUR_PRODUCTION_APP
- heroku restart --app OUR_PRODUCTION_APP
- heroku maintenance:off --app OUR_PRODUCTION_APP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment