From 657f08502aa3a2ddf6b66187ffd564c61a5bcac5 Mon Sep 17 00:00:00 2001 From: Chris Seaton Date: Fri, 30 Sep 2022 14:49:01 +0100 Subject: [PATCH] Use bundle exec to run example files (#5552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When showing a junior how to explore how Sidekiq works, we noticed that if you’re running from the source directory, you’ll need to use bundle exec to get the gem on the load path. Co-authored-by: Musa Kurel Co-authored-by: Musa Kurel --- examples/por.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/por.rb b/examples/por.rb index a89943ab4..737631706 100644 --- a/examples/por.rb +++ b/examples/por.rb @@ -1,9 +1,9 @@ require "sidekiq" # Start up sidekiq via -# ./bin/sidekiq -r ./examples/por.rb +# bundle exec bin/sidekiq -r ./examples/por.rb # and then you can open up an IRB session like so: -# irb -r ./examples/por.rb +# bundle exec irb -r ./examples/por.rb # where you can then say # PlainOldRuby.perform_async "like a dog", 3 #