A
aurelianito
Hi,
I'm trying the camping web framework under windows with mongrel (with
ruby installed from One Click Ruby installer 16 for Ruby 1.8.4.). And
while I'm able to see the web pages in a browser I'm unable to shut it
down with CTRL-C. Do you know what is the problem?
Any responses will be highly appreciated,
Thank you,
Aureliano.
PS: Below is the code I use to run Mongrel:
require 'mongrel/camping'
Pru1::Models::Base.logger = Logger.new('camping.log')
handler = Mongrel::Camping::CampingHandler.new(Pru1)
server = Mongrel::HttpServer.new("127.0.0.1", "3000")
server.register("/", handler)
server.register("/favicon.ico", Mongrel::Error404Handler.new(""))
thread = server.run
puts "Mongrel started"
trap("INT") { server.stop }
thread.join
I'm trying the camping web framework under windows with mongrel (with
ruby installed from One Click Ruby installer 16 for Ruby 1.8.4.). And
while I'm able to see the web pages in a browser I'm unable to shut it
down with CTRL-C. Do you know what is the problem?
Any responses will be highly appreciated,
Thank you,
Aureliano.
PS: Below is the code I use to run Mongrel:
require 'mongrel/camping'
Pru1::Models::Base.logger = Logger.new('camping.log')
handler = Mongrel::Camping::CampingHandler.new(Pru1)
server = Mongrel::HttpServer.new("127.0.0.1", "3000")
server.register("/", handler)
server.register("/favicon.ico", Mongrel::Error404Handler.new(""))
thread = server.run
puts "Mongrel started"
trap("INT") { server.stop }
thread.join