mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Cant print banner before booting app or it breaks Pro's banner override
This commit is contained in:
parent
dd30e18628
commit
4efee23067
1 changed files with 7 additions and 7 deletions
|
@ -43,6 +43,13 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def run
|
||||
# Print logo and banner for development
|
||||
if environment == 'development' && $stdout.tty?
|
||||
puts "\e[#{31}m"
|
||||
puts Sidekiq::BANNER
|
||||
puts "\e[0m"
|
||||
end
|
||||
|
||||
self_read, self_write = IO.pipe
|
||||
|
||||
%w(INT TERM USR1 USR2 TTIN).each do |sig|
|
||||
|
@ -210,13 +217,6 @@ 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