The preview server URL will once again use the machine's hostname if available.
This commit is contained in:
parent
cf58acda30
commit
126888272c
|
@ -3,6 +3,7 @@ master
|
||||||
|
|
||||||
* The preview server can now serve over HTTPS using the `--https` flag. It will use an automatic self-signed cert which can be overridden using `--ssl_certificate` and `--ssl_private_key`. These settings can also be set in `config.rb`
|
* The preview server can now serve over HTTPS using the `--https` flag. It will use an automatic self-signed cert which can be overridden using `--ssl_certificate` and `--ssl_private_key`. These settings can also be set in `config.rb`
|
||||||
* The preview server URL will use 'localhost' rather than '0.0.0.0'.
|
* The preview server URL will use 'localhost' rather than '0.0.0.0'.
|
||||||
|
* The preview server URL will once again use the machine's hostname if available.
|
||||||
|
|
||||||
3.3.11
|
3.3.11
|
||||||
===
|
===
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require 'socket'
|
||||||
|
|
||||||
# Using Tilt for templating
|
# Using Tilt for templating
|
||||||
require 'tilt'
|
require 'tilt'
|
||||||
|
|
||||||
|
@ -69,7 +71,7 @@ module Middleman
|
||||||
|
|
||||||
# Which host preview should start on.
|
# Which host preview should start on.
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
config.define_setting :host, '0.0.0.0', 'The preview server host'
|
config.define_setting :host, Socket.gethostname, 'The preview server host'
|
||||||
|
|
||||||
# Which port preview should start on.
|
# Which port preview should start on.
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
|
Loading…
Reference in a new issue