Skip to content

Commit

Permalink
Use bundle exec to run example files (#5552)
Browse files Browse the repository at this point in the history
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 <musakurel@gmail.com>

Co-authored-by: Musa Kurel <musakurel@gmail.com>
  • Loading branch information
chrisseaton and musakurel committed Sep 30, 2022
1 parent b2b23bf commit 657f085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/por.rb
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down

0 comments on commit 657f085

Please sign in to comment.