move init

This commit is contained in:
Thomas Reynolds 2011-11-11 11:14:45 -08:00
parent 05e2ec15ca
commit 97e1dfa339

View file

@ -82,14 +82,13 @@ module Guard
app = ::Middleman.server app = ::Middleman.server
app.set :environment, @options[:environment].to_sym app.set :environment, @options[:environment].to_sym
app.set :logging, @options[:debug] == "true" app.set :logging, @options[:debug] == "true"
puts "== The Middleman is standing watch on port #{@options[:Port]||4567}"
@app = app.new! @app = app.new!
app_rack = app.build_new(@app) app_rack = app.build_new(@app)
@server_job = fork do @server_job = fork do
opts = @options.dup opts = @options.dup
opts[:app] = app_rack opts[:app] = app_rack
puts "== The Middleman is standing watch on port #{opts[:Port]||4567}"
::Middleman.start_server(opts) ::Middleman.start_server(opts)
end end
end end