class Middleman::PreviewServer
def reload
-
(void)
-
def reload app.logger.info '== The Middleman is reloading' app.execute_callbacks(:reload) begin app = initialize_new_app rescue => e $stderr.puts "Error reloading Middleman: #{e}\n#{e.backtrace.join("\n")}" app.logger.info '== The Middleman is still running the application from before the error' return end unmount_instance @webrick.shutdown @webrick = nil mount_instance(app) app.logger.info '== The Middleman has reloaded' end