Rajesh Omanakuttan
Rajesh Omanakuttan

Reputation: 6918

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

Upvotes: 0

Views: 1348

Answers (1)

Brandon Hansen
Brandon Hansen

Reputation: 205

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

Upvotes: 2

Related Questions