1
0
Fork 0
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:
Mike Perham 2014-03-22 14:41:53 -07:00
parent dd30e18628
commit 4efee23067

View file

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