32

I'm using RubyMine 6.3. I tried to configure Sidekiq in RubyMine but I can't start it.

How would I configure and start Sidekiq in RubyMine?

Makoto
  • 104,088
  • 27
  • 192
  • 230
Kanna
  • 990
  • 1
  • 11
  • 30

1 Answers1

82
  1. Go to Run/Debug Configurations
  2. Add a new Gem Command
  3. Enter 'sidekiq' as the Gem name and Executable name
  4. Check 'Run the script in the contexst of bundle (bundle exec) under the 'Bundler' tab
  5. Click 'Apply' and then run it.

enter image description here

coderberry
  • 3,040
  • 3
  • 26
  • 28
  • Does using this method automatically reload sidekiq when code is changed or do we need to use something like rerun? – Altonymous Sep 10 '14 at 20:10
  • @Altonymous no it does not, you would have to use another method to reload sidekiq. I'm pretty sure you could modify this to incorporate rerun with it. – ZeroInputCtrl Jul 29 '15 at 21:15
  • is there anyway to launch sidekiq before rails starts? You can add it as a `before launch` task but it will wait until the process completes, which is what I do not want because i want them to run concurrently. – DogEatDog Jun 13 '18 at 14:59
  • This is also the way debug sidekiq jobs in RubyMine – Martin M Feb 27 '21 at 12:22