简体   繁体   中英

Rails 3 Sidekiq Passenger

I am able to get Sidekiq scheduler working locally. The last obstacle in my way is how to deploy this to a production app on passenger. Can someone point me in the right direction on how to run Sidekiq continuously on passenger.

Appreciate it.

Passenger is a Apache\\nginx module for running Rails\\Rack apps.

Sidekiq is a threaded background worker queue that usually is run with JRuby in production.

You do not run Sidekiq through Passenger.

Rather, just configure Passenger to run and serve you app as needed. Then you can start Sidekiq and have it poll Redis for work. It is highly recommend you use either JRuby or Rubinius so you take full advantage of Sidekiq's threaded nature.

For more details on deploying Sidekiq, refer to the wiki: https://github.com/mperham/sidekiq/wiki/Deployment

For more details on configuring Passenger refer to it's docs (for either Apache or nginx): https://www.phusionpassenger.com/support#documentation

Update: From the creator of Sidekiq there is a library called Girl Friday . This library adds an asynchronous job queue but runs inline with your Rails application (or other Rack app). This option can greatly simplify deployment and save money!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM