Created
February 3, 2016 07:40
-
-
Save wppurking/5cd58eecf5dc12b2674d to your computer and use it in GitHub Desktop.
supervisor handle sidekiq
This file contains hidden or 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
| [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