1
0
Fork 0
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:
Mike Perham 2014-03-20 15:28:06 -07:00
parent 3bee1ad7b9
commit 03b235f4f5

View file

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