How is Sidekiq started?

Can someone indicate how sidekiq is starting when we run rails server? I looked everywhere in the code and can’t figure it out.

Here https://github.com/discourse/discourse/blob/master/config/unicorn.conf.rb#L92

General recommendation in dev is just to use:

bin/unicorn

and then in another window:

bin/ember-cli

The unicorn wrapper ensure a Sidekiq process is started.