jruby specific rails issue
--------------------------
Key: JRUBY-3982
URL: http://jira.codehaus.org/browse/JRUBY-3982
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.3.1
Environment: jruby with rails 2.3.4
Reporter: Phil Swenson
Assignee: Thomas E Enebo
Accessing rails running webrick doesn't work for anything other than
localhost:3000
webrick binds to 127.0.0.1, NOT the host name
so rails is not accessible from any other machine
added
options[:BindAddress] = options[:Host]
to rails in lib/server.rb solved it
server = Rack::Handler.get(ARGV.first) rescue nil
unless server
begin
server = Rack::Handler::Mongrel
rescue LoadError => e
server = Rack::Handler::WEBrick
options[:BindAddress] = options[:Host]
end
end
rails works fine in straight ruby, but not JRuby
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email