Skip to content

Instantly share code, notes, and snippets.

@nicolai86
Created March 1, 2012 21:54
Show Gist options
  • Save nicolai86/1953490 to your computer and use it in GitHub Desktop.
Save nicolai86/1953490 to your computer and use it in GitHub Desktop.
Sample supervisord configuration file generated by foreman
[program:app-unicorn]
command=/home/app-user/.rvm/bin/app_bundle exec unicorn -c config/unicorn.rb -E production
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/home/app-user/shared/log/unicorn-1-out.log
stderr_logfile=/home/app-user/shared/log/unicorn-1-err.log
user=app-user
directory=/home/app-user/current
environment=PORT=5000,VERBOSE=0,QUEUE=*,RAILS_ENV=production
[program:app-worker-1]
command=/home/app-user/.rvm/bin/app_bundle exec rake environment resque:work
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/home/app-user/shared/log/worker-1-out.log
stderr_logfile=/home/app-user/shared/log/worker-1-err.log
user=app-user
directory=/home/app-user/current
environment=PORT=5101,VERBOSE=0,QUEUE=*,RAILS_ENV=production
[program:app-worker-2]
command=/home/app-user/.rvm/bin/app_bundle exec rake environment resque:work
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/home/app-user/shared/log/worker-2-out.log
stderr_logfile=/home/app-user/shared/log/worker-2-err.log
user=app-user
directory=/home/app-user/current
environment=PORT=5102,VERBOSE=0,QUEUE=*,RAILS_ENV=production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment