Skip to content

Commit

Permalink
prep for preload, #4646
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jul 21, 2020
1 parent f9f3959 commit 06804f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/sidekiq/cli.rb
Expand Up @@ -33,8 +33,9 @@ def jruby?
# Code within this method is not tested because it alters
# global process state irreversibly. PRs which improve the
# test coverage of Sidekiq::CLI are welcomed.
def run
boot_system
def run(boot_app: true)
boot_application if boot_app

if environment == "development" && $stdout.tty? && Sidekiq.log_formatter.is_a?(Sidekiq::Logger::Formatters::Pretty)
print_banner
end
Expand Down Expand Up @@ -239,7 +240,7 @@ def options
Sidekiq.options
end

def boot_system
def boot_application
ENV["RACK_ENV"] = ENV["RAILS_ENV"] = environment

if File.directory?(options[:require])
Expand Down

0 comments on commit 06804f5

Please sign in to comment.