mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Print banner before all else
This commit is contained in:
parent
3bee1ad7b9
commit
03b235f4f5
1 changed files with 7 additions and 8 deletions
|
@ -55,14 +55,6 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
|
||||
# Print logo and banner for development
|
||||
if environment == 'development' && $stdout.tty?
|
||||
puts "\e[#{31}m"
|
||||
puts Sidekiq::BANNER
|
||||
puts "\e[0m"
|
||||
end
|
||||
|
||||
redis {} # noop to connect redis and print info
|
||||
logger.info "Running in #{RUBY_DESCRIPTION}"
|
||||
logger.info Sidekiq::LICENSE
|
||||
|
||||
|
@ -219,6 +211,13 @@ module Sidekiq
|
|||
|
||||
raise ArgumentError, "#{options[:require]} does not exist" unless File.exist?(options[:require])
|
||||
|
||||
# Print logo and banner for development
|
||||
if environment == 'development' && $stdout.tty?
|
||||
puts "\e[#{31}m"
|
||||
puts Sidekiq::BANNER
|
||||
puts "\e[0m"
|
||||
end
|
||||
|
||||
if File.directory?(options[:require])
|
||||
require 'rails'
|
||||
require 'sidekiq/rails'
|
||||
|
|
Loading…
Reference in a new issue