Simplify watcher to not fork by using 'listen' in non-blocking mode
This commit is contained in:
parent
37fc5b2b8c
commit
dcc6c5b5e1
2 changed files with 10 additions and 59 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue