Skip to content

Instantly share code, notes, and snippets.

@mikeatlas
Created May 31, 2013 23:15
Show Gist options
  • Save mikeatlas/5688575 to your computer and use it in GitHub Desktop.
Save mikeatlas/5688575 to your computer and use it in GitHub Desktop.
Sample circle.yml - How to precompile assets of a rails project (using the turbo-sprockets-rails3 gem) before pushing to heroku
deployment:
continuous_integration_deployment_test:
branch: master
commands:
- git config --global user.email "ci@test.com"
- git config --global user.name "Continuous Integration"
- git checkout -b with_precompiled_assets
- bundle exec rake assets:precompile assets:clean_expired:
timeout: 1500
- git add public/assets
- git commit -m 'adding precompiled assets'
- git push git@heroku.com:appname-ci.git with_precompiled_assets -f:
timeout: 900
- heroku run bundle exec rake db:migrate --app appname-ci:
timeout: 900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment