lib/middleman/guard.rb in middleman-2.0.0.rc92 vs lib/middleman/guard.rb in middleman-2.0.0.rc93
- old
+ new
@@ -54,14 +54,18 @@
private
def server_start
@server_options = {
:Port => @options[:port],
- :Logger => ::WEBrick::Log.new('/dev/null'),
- :AccessLog => ::WEBrick::Log.new('/dev/null')
+ :AccessLog => []
+ # :AccessLog => ::WEBrick::Log.new('/dev/null'),
+ # :Logger => ::WEBrick::Log.new('/dev/null')
}
@server_job = fork do
- @server_options[:app] = ::Middleman.server.new
+ app = ::Middleman.server
+ app.set :environment, @options[:environment].to_sym
+ @server_options[:app] = app.new
+ @server_options[:server] = 'thin'
::Rack::Server.new(@server_options).start
end
puts "== The Middleman is standing watch on port #{@options[:port]}"
end
\ No newline at end of file