Clean up commit f366325b3b
a bit
This commit is contained in:
parent
f366325b3b
commit
cf58acda30
|
@ -2,6 +2,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'.
|
||||||
|
|
||||||
3.3.11
|
3.3.11
|
||||||
===
|
===
|
||||||
|
|
|
@ -267,7 +267,7 @@ module Middleman
|
||||||
# Returns the URI the preview server will run on
|
# Returns the URI the preview server will run on
|
||||||
# @return [URI]
|
# @return [URI]
|
||||||
def uri
|
def uri
|
||||||
host = @host.eql?('0.0.0.0') ? 'localhost' : @host
|
host = @host == '0.0.0.0' ? 'localhost' : @host
|
||||||
scheme = https? ? 'https' : 'http'
|
scheme = https? ? 'https' : 'http'
|
||||||
URI("#{scheme}://#{host}:#{@port}")
|
URI("#{scheme}://#{host}:#{@port}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue