Merge pull request #1248 from Arcovion/patch-1

Mobile friendly host & windows fix
This commit is contained in:
Thomas Reynolds 2014-04-07 09:49:36 -07:00
commit 1b3b785c2b

View file

@ -15,7 +15,7 @@ module Middleman
# @return [void]
def start(opts={})
@options = opts
@host = @options[:host] || Socket.gethostname
@host = @options[:host] || Socket.ip_address_list.find(&:ipv4_private?).ip_address
@port = @options[:port] || DEFAULT_PORT
mount_instance(new_app)