lib/nitro/server.rb in nitro-0.26.0 vs lib/nitro/server.rb in nitro-0.27.0

- old
+ new

@@ -109,23 +109,19 @@ def self.run(options = {}) unless options.is_a?(Hash) options = { :controller => options } end - + runner = Runner.new runner.setup_options runner.setup_mode runner.daemonize if runner.daemon - + server = Server.new server.start(options) - - unless $NITRO_NO_INVOKE - runner.invoke(server) - else - Logger.info 'Running in console mode.' - end + + runner.invoke(server) unless $NITRO_NO_INVOKE return server end # A Helper class used for CherryPy-style publishing.