Search code examples
ruby-on-railssidekiq

Deploying sidekiq in server with production environment


I used sidekiq for performing background tasks. It is working great for me. But i am little confused with deploying it in my server. Right now i am starting sidekiq manually.

i can use

bundle exec sidekiq -d

(as daemon)

But author suggest its not recommended strongly. I went through with the deployment section of the documentation but lack of expertise in rails made me stuck.

Can anyone explain how to setup sidekiq in my server step by step?


Solution

  • I just wrote this last night. It doesn't cover how to use Capistrano to deploy your Rails app but it does cover the Sidekiq-specific parts:

    https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu