Skip to content

Instantly share code, notes, and snippets.

@glebm
Created October 24, 2012 15:59
Show Gist options
  • Save glebm/3946937 to your computer and use it in GitHub Desktop.
Save glebm/3946937 to your computer and use it in GitHub Desktop.
Example Procfile.production
# = 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