From 97e1dfa339f99e3548f293d0474de94c2fc68564 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 11 Nov 2011 11:14:45 -0800 Subject: [PATCH] move init --- lib/middleman/guard.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/middleman/guard.rb b/lib/middleman/guard.rb index f41084e7..0d69050d 100644 --- a/lib/middleman/guard.rb +++ b/lib/middleman/guard.rb @@ -82,14 +82,13 @@ module Guard app = ::Middleman.server app.set :environment, @options[:environment].to_sym app.set :logging, @options[:debug] == "true" - - puts "== The Middleman is standing watch on port #{@options[:Port]||4567}" @app = app.new! app_rack = app.build_new(@app) @server_job = fork do opts = @options.dup opts[:app] = app_rack + puts "== The Middleman is standing watch on port #{opts[:Port]||4567}" ::Middleman.start_server(opts) end end