Skip to content

Instantly share code, notes, and snippets.

@ptrikutam
Created January 12, 2016 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrikutam/dd3b409e967f7450d837 to your computer and use it in GitHub Desktop.
Save ptrikutam/dd3b409e967f7450d837 to your computer and use it in GitHub Desktop.
A sample circle.yml for a github workflow
deployment:
production:
branch: master
commands:
- git push git@heroku.com:yourapp.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app yourapp
- heroku run 'rake cache:clear' --app yourapp
staging:
branch: development
commands:
- git push git@heroku.com:yourapp-staging.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app yourapp-staging
- heroku run 'rake cache:clear' --app yourapp-staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment