Merge pull request #1586 from mojombo/print-webrick-url-if-muted

Print server address when launching a server.
This commit is contained in:
Matt Rogers 2013-09-30 20:46:39 -07:00
commit 3071fcde11
1 changed files with 2 additions and 0 deletions

View File

@ -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)