Merge pull request #1248 from Arcovion/patch-1
Mobile friendly host & windows fix
This commit is contained in:
commit
1b3b785c2b
|
@ -15,7 +15,7 @@ module Middleman
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def start(opts={})
|
def start(opts={})
|
||||||
@options = 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
|
@port = @options[:port] || DEFAULT_PORT
|
||||||
|
|
||||||
mount_instance(new_app)
|
mount_instance(new_app)
|
||||||
|
|
Loading…
Reference in a new issue