Skip to content

Instantly share code, notes, and snippets.

@gurkanoluc
Last active December 11, 2015 18:58

Revisions

  1. gurkanoluc revised this gist Jan 26, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  2. gurkanoluc created this gist Jan 26, 2013.
    7 changes: 7 additions & 0 deletions gistfile1.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    [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
    3 changes: 3 additions & 0 deletions gistfile2.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/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