Running Sidekiq with rails server in a development environment

I use Sidekiq for some of my background processes.

I am currently doing:

run bundle exec rails s on one terminal, and then run bundle exec sidekiq on another terminal so that sidekiq starts itself and looks for jobs to process.

I want:

Once I started bundle exec rails s , it should also run sidekiq bundle exec sidekiq . How can I integrate it into the development environment?

+8
ruby background-process sidekiq
source share
1 answer

For applications like yours that require running multiple services, consider using foreman and Procfile to identify these processes. Then you can use foreman start to run all of them in one terminal.

+13
source share

All Articles