Question

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 :)

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top