Class: Mack::SimpleServer
- Inherits:
-
Object
- Object
- Mack::SimpleServer
- Defined in:
- lib/mack/initialization/server/simple_server.rb
Overview
Even though it’s called, SimpleServer, this might be the only server you need to run a Mack application.
This SimpleServer does not use Thin. But does work with anything that Rack has a handler for.
Class Method Summary collapse
Class Method Details
.run(options) ⇒ Object
10 11 12 13 14 |
# File 'lib/mack/initialization/server/simple_server.rb', line 10 def run() r = "Rack::Handler::#{[:handler].camelcase}" puts "Starting app using: #{r} in #{[:environment]} mode on port: #{[:port]}" eval(r).run(Mack::Utils::Server.build_app, :Port => [:port]) end |