Sha256: c93c1157ad8778f726cf790cf770a4ef2df5dbdddf973293694168eb394bb2da
Contents?: true
Size: 569 Bytes
Versions: 13
Compression:
Stored size: 569 Bytes
Contents
module Mack # 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 SimpleServer class << self def run(options) r = "Rack::Handler::#{options.handler.camelcase}" puts "Starting app using: #{r} in #{options.environment} mode on port: #{options.port}" eval(r).run(Mack::Utils::Server.build_app, :Port => options.port) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems