Simplify watcher to not fork by using 'listen' in non-blocking mode

This commit is contained in:
Ben Hollis 2012-04-22 19:01:00 -07:00
parent 37fc5b2b8c
commit dcc6c5b5e1
2 changed files with 10 additions and 59 deletions

View file

@ -523,7 +523,7 @@ module Middleman
#
# @return [Class]
def server(&block)
@@servercounter ||= 1
@@servercounter ||= 0
@@servercounter += 1
const_set("MiddlemanApplication#{@@servercounter}", Class.new(Middleman::Application))
end