module Middleman::PreviewServer

def start(opts={})

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