Created
October 24, 2012 15:59
-
-
Save glebm/3946937 to your computer and use it in GitHub Desktop.
Example Procfile.production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# = Here is how to export to upstart: | |
# sudo foreman export upstart /etc/init -f Procfile.production -u my_app_user -a my_app | |
# sudo find /etc/init/ -name "my_app*.conf" -exec sed -i 's/releases\/[0-9]*/current/g' {} \; | |
web: subcontract --rvm --with-rubies . do -- env RAILS_ENV=production bundle exec rainbows -c config/rainbows.production.rb | |
worker: subcontract --rvm --with-rubies . RAILS_ENV=production bundle exec rake resque:work QUEUE=* | |
scheduler: subcontract --rvm --with-rubies . RAILS_ENV=production bundle exec rake resque:scheduler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment