Use bundle exec to run example files (#5552)

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>
This commit is contained in:
Chris Seaton 2022-09-30 14:49:01 +01:00 committed by GitHub
parent b2b23bfee4
commit 657f08502a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
#