Skip to content
Newer
Older
100644 13 lines (8 sloc) 257 Bytes
7a449da Revactor runs Mongrel now... w00t
Tony Arcieri authored Jan 8, 2008
1 #!/usr/bin/env ruby
2
3 require File.dirname(__FILE__) + '/../lib/revactor/mongrel'
4
5 ADDR = '127.0.0.1'
6 PORT = 8080
7
54a7a30 Fix mongrel, with a slight alteration to its semantics
Tony Arcieri authored Feb 8, 2008
8 server = Mongrel::HttpServer.new(ADDR, PORT)
9 server.register '/', Mongrel::DirHandler.new(".")
7a449da Revactor runs Mongrel now... w00t
Tony Arcieri authored Jan 8, 2008
10
54a7a30 Fix mongrel, with a slight alteration to its semantics
Tony Arcieri authored Feb 8, 2008
11 puts "Running on #{ADDR}:#{PORT}"
dd3bb3f Mongrel interface changes
Tony Arcieri authored Feb 8, 2008
12 server.start
Something went wrong with that request. Please try again.