Dear People of Rubyland,
I still can't get this ruby file running without errors, even when
installing the mongrel prerelease.
Why doesn't this work in 1.9.3 ?
Is mongrel used much anymore? If not, what are the alternatives?
Code:
require 'mongrel'
class BasicServer < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |headers, output|
headers["Content-Type"] = "text/html"
output.write('<html><body><h1><body><h1>Hello!</h1></body></html>')
end
end
end
s = Mongrel::HttpServer.new("0.0.0.0", "1234", 20)
Sincerely,
Rashi
on 2013-02-15 02:36
on 2013-02-15 02:52
Mongrel is unmaintained. The prerelease you are referring to is from 2010. The modern descendant of Mongrel is Puma: http://puma.io/
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.