quiet down guard and thin
This commit is contained in:
parent
d264a49a76
commit
9bfd345849
|
@ -55,6 +55,10 @@
|
||||||
libdir = File.dirname(__FILE__)
|
libdir = File.dirname(__FILE__)
|
||||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||||
|
|
||||||
|
# Quiet down Thin
|
||||||
|
require "thin"
|
||||||
|
::Thin::Logging.silent = true
|
||||||
|
|
||||||
# We're riding on Sinatra, so let's include it.
|
# We're riding on Sinatra, so let's include it.
|
||||||
require "sinatra/base"
|
require "sinatra/base"
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ module Middleman
|
||||||
:environment => options[:environment]
|
:environment => options[:environment]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puts "== The Middleman is loading"
|
||||||
Middleman::Guard.start(params)
|
Middleman::Guard.start(params)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,15 @@ if Config::CONFIG['host_os'].downcase =~ %r{mingw}
|
||||||
require "win32/process"
|
require "win32/process"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Quiet down Guard
|
||||||
|
ENV['GUARD_ENV'] = 'test'
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
module Guard
|
module Guard
|
||||||
def self.add_guard(&block)
|
def self.add_guard(&block)
|
||||||
# Deprecation Warning
|
# Deprecation Warning
|
||||||
|
$stderr.puts "== Middleman::Guard.add_guard has been removed. Update your extensions to versions which support this change."
|
||||||
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.start(options={})
|
def self.start(options={})
|
||||||
|
|
Loading…
Reference in a new issue