Merge pull request #1586 from mojombo/print-webrick-url-if-muted
Print server address when launching a server.
This commit is contained in:
commit
3071fcde11
|
@ -18,6 +18,8 @@ module Jekyll
|
||||||
|
|
||||||
s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option)
|
s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option)
|
||||||
|
|
||||||
|
Jekyll.logger.info "Server address:", "http://#{s.config[:BindAddress]}:#{s.config[:Port]}"
|
||||||
|
|
||||||
if options['detach'] # detach the server
|
if options['detach'] # detach the server
|
||||||
pid = Process.fork { s.start }
|
pid = Process.fork { s.start }
|
||||||
Process.detach(pid)
|
Process.detach(pid)
|
||||||
|
|
Loading…
Reference in New Issue