module Middleman::PreviewServer
def start(opts={})
-
(void)
-
def start(opts={}) @options = opts @host = @options[:host] || Socket.gethostname @port = @options[:port] || DEFAULT_PORT mount_instance logger.info "== The Middleman is standing watch at http://#{host}:#{port}" @initialized ||= false unless @initialized @initialized = true register_signal_handlers # Save the last-used @options so it may be re-used when # reloading later on. ::Middleman::Profiling.report("server_start") @webrick.start end end