Skip to content

Instantly share code, notes, and snippets.

@gurkanoluc
Last active December 11, 2015 18:58
Show Gist options
  • Save gurkanoluc/4645378 to your computer and use it in GitHub Desktop.
Save gurkanoluc/4645378 to your computer and use it in GitHub Desktop.
#!/bin/bash
export PATH=/usr/local/.rbenv/bin:/root/.rbenv/shims/:$PATH;
cd /var/www/<project_name>/current && bundle exec sidekiq -e production -C /var/www/<project_name>/current/config/sidekiq.yml -P /var/www/<project_name>/shared/pids/sidekiq.pid
[program:sidekiq]
command=/var/www/<project_name>/current/script/run-sidekiq.sh
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/sidekiq.log
redirect_stderr=true
pidfile=/var/www/<project_name>/shared/pids/sidekiq.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment