Sha256: a3872452a96d2d525714860622282ac1fbc31a452e823335d2735273f407c1a1

Contents?: true

Size: 601 Bytes

Versions: 19

Compression:

Stored size: 601 Bytes

Contents

module Mack
  # Even though it's called, SimpleServer, this might be the only server you need to run
  # a Mack application.
  # 
  #   $ ruby script/server
  # 
  # 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

19 entries across 19 versions & 1 rubygems

Version Path
mack-0.0.3 initialize/server/simple_server.rb
mack-0.0.4 initialize/server/simple_server.rb
mack-0.0.5 initialization/server/simple_server.rb
mack-0.0.6.2 initialization/server/simple_server.rb
mack-0.0.6.1 initialization/server/simple_server.rb
mack-0.0.7.0 lib/initialization/server/simple_server.rb
mack-0.2.0.1 lib/initialization/server/simple_server.rb
mack-0.0.6 initialization/server/simple_server.rb
mack-0.1.0 lib/initialization/server/simple_server.rb
mack-0.2.0 lib/initialization/server/simple_server.rb
mack-0.4.1 lib/initialization/server/simple_server.rb
mack-0.3.0 lib/initialization/server/simple_server.rb
mack-0.4.0 lib/initialization/server/simple_server.rb
mack-0.4.0.1 lib/initialization/server/simple_server.rb
mack-0.4.2.1 lib/initialization/server/simple_server.rb
mack-0.4.7 lib/initialization/server/simple_server.rb
mack-0.4.2 lib/initialization/server/simple_server.rb
mack-0.4.6 lib/initialization/server/simple_server.rb
mack-0.4.5 lib/initialization/server/simple_server.rb