Skip to content

Instantly share code, notes, and snippets.

@nickhoffman
Created March 10, 2012 21:49
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 nickhoffman/bac84614e823361e2eb6 to your computer and use it in GitHub Desktop.
Save nickhoffman/bac84614e823361e2eb6 to your computer and use it in GitHub Desktop.
start on starting domain.com-resque_worker
stop on stopping domain.com-resque_worker
respawn
exec su - nick -c 'cd /data/web/domain.com/production/current/config/foreman_procfiles; export PORT=5000; RAILS_ENV=production bundle exec rake resque:work VERBOSE=1 QUEUE=* >> /data/web/domain.com/production/shared/log/resque_worker-1.log 2>&1'
start on starting domain.com
stop on stopping domain.com
pre-start script
bash << "EOF"
mkdir -p /data/web/domain.com/production/shared/log
chown -R nick /data/web/domain.com/production/shared/log
EOF
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment