Skip to content

Instantly share code, notes, and snippets.

@benjiwheeler
Created January 4, 2015 03:47
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 benjiwheeler/717fed6278116aa10c5e to your computer and use it in GitHub Desktop.
Save benjiwheeler/717fed6278116aa10c5e to your computer and use it in GitHub Desktop.
Canonical circle.yml
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