Skip to content

Instantly share code, notes, and snippets.

@classpro
Forked from seyhunak/sidekiq.conf
Created August 26, 2019 13:17
Show Gist options
  • Select an option

  • Save classpro/4f7d9fe11bc1af80da484b96fd85c84c to your computer and use it in GitHub Desktop.

Select an option

Save classpro/4f7d9fe11bc1af80da484b96fd85c84c to your computer and use it in GitHub Desktop.
Sidekiq - Supervisord Configuration
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps
/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
/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