简体   繁体   中英

Is it possible to boot sidekiq (redis server) when we start Rails app using 'rails server'?

I have a Rails application running in Ruby 2.0.0 and Rails 3.2.16 . I'm using Sidekiq for setting up background jobs for a lot of automated processes like email delivery, cancellation etc.

Now, I'm starting the rails in one terminal and in next I'm starting the sidekiq.

  1. Rails: rails server -e production
  2. Sidekiq: bundle exec sidekiq -q critical, -q high, -q default, -q low -e production

But, I need to know whether we can start Sidekiq when we start rails itself not running the second command.

Any help would be appreciated. Thanks :)

Look in to foreman and using a Procfile. Then you would use the command foreman start

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