2

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?

Aparichith
  • 1,452
  • 4
  • 20
  • 40
  • Try [sidekiq production](http://stackoverflow.com/questions/22958188/how-to-run-sidekiq-in-production-server) – Nermin Dec 24 '14 at 09:56
  • i referred that before.There is no step by step they just daemonized the command.I don't want to do that. – Aparichith Dec 24 '14 at 12:18

1 Answers1

3

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

Mike Perham
  • 21,300
  • 6
  • 59
  • 61
  • Thanks for the document. i didn't understood one line `# change to match your deployment user` ,`setuid deploy`,`setgid deploy`,`env HOME=/home/deploy`. Mean what are they and what should be set in that place? and how to start `sidekiq` service ?(just this ?`sudo start sidekiq index=0`) – Aparichith Dec 26 '14 at 05:53
  • Start with `initctl start sidekiq`. `deploy` is the Linux user you are using. – Mike Perham Dec 26 '14 at 20:41