-
-
Save classpro/4f7d9fe11bc1af80da484b96fd85c84c to your computer and use it in GitHub Desktop.
Sidekiq - Supervisord Configuration
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
| https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps |
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
| /etc/supervisor/conf.d/sidekiq.conf | |
| [program:sidekiq] | |
| command=/usr/local/bin/sidekiq.sh | |
| autostart=true | |
| autorestart=true | |
| stdout_logfile=/var/log/supervisor/sidekiq.log | |
| redirect_stderr=true | |
| pidfile=~/www/project/tmp/pids/sidekiq.pid |
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
| /usr/local/bin/sidekiq.sh | |
| #!/bin/bash | |
| export PATH=/usr/local/.rbenv/bin:/root/.rbenv/shims/:$PATH; | |
| cd ~/www/project && bundle exec sidekiq -e production -C ~/www/project/config/sidekiq.yml -P ~/www/project/tmp/pids/sidekiq.pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment