How to run sidekiq in production server?

后端 未结 3 1123
耶瑟儿~
耶瑟儿~ 2021-01-29 22:57

I have a server with apache + passenger.

How will I run sidekiq in production? Any configuration needed to run the

bundle exec sidekiq
         


        
3条回答
  •  遇见更好的自我
    2021-01-29 23:20

    You should be able to start Sidekiq as a background process (daemon) by passing the -d argument when you start it up:

    bundle exec sidekiq -d.

    Although this answer should work for you now, please be aware that if the sidekiq process crashes for any reason the process will have to be manually restarted. A good starting place for finding out about more robust ways to run sidekiq in production is here: https://github.com/mperham/sidekiq/wiki/Deployment

提交回复
热议问题