Class: RushServer
- Inherits:
-
Object
- Object
- RushServer
- Defined in:
- lib/rush/server.rb
Overview
A container class to run the Mongrel server for rushd.
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/rush/server.rb', line 87 def run host = "127.0.0.1" port = Rush::Config::DefaultPort rushd = RushHandler.new rushd.log "rushd listening on #{host}:#{port}" h = Mongrel::HttpServer.new(host, port) h.register("/", rushd) h.run.join end |