Skip to content

Instantly share code, notes, and snippets.

@wppurking
Created February 3, 2016 07:40
Show Gist options
  • Select an option

  • Save wppurking/5cd58eecf5dc12b2674d to your computer and use it in GitHub Desktop.

Select an option

Save wppurking/5cd58eecf5dc12b2674d to your computer and use it in GitHub Desktop.
supervisor handle sidekiq
[program:sidekiq]
; ---- point the sidekiq folder
directory=/var/www/<app>/
; ---- point binary execute file (use rbenv)
command=/root/.rbenv/shims/bundle exec sidekiq -e production
autostart=true
autorestart=true
; redirect stderr to stdout (like: 1>&2 or >&2)
redirect_stderr=true
stdout_logfile=/var/log/supervisor/sidekiq.log
loglevel=info
startsecs=3
; ----- setup Environment: PATH, RBENV_ROOT
environment=PATH="/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",RBENV_ROOT="/root/.rbenv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment