Embedding JRuby-Rack (non-war deployment) -----------------------------------------
Key: JRUBY-3105 URL: http://jira.codehaus.org/browse/JRUBY-3105 Project: JRuby Issue Type: Improvement Components: Rails WAR Deployment Reporter: Christian Seiler Attachments: jrack_embedded_r235.diff Basically right now JRuby-Rack seems to be tightly coupled to a war environment (WEB-INF/, WEB-INF/web.xml). I want to use JRuby-Rack with embedded Jetty which requires a few patches (or maybe some big workarounds like in the Jetty-Rails project). Also see my initial posting to the dev list: http://www.nabble.com/JRuby-Rack---Embedded-Jetty-tp20185813p20185813.html My proposed changes: - keep 'root.path' and 'rails.path as-is in case of embedded configuration - do not mess around with the gem_path in case of embedded configuration - do not change working dir and set $0 in case of embedded configuration - optionally keep default logger - possibility to check if any errors have happened during startup I use this to implement a more classical Rails-style deployment: Capistrano starts a little Ruby script which fires up Jetty and JRuby-Rack and immediately shutsdown in case of an error. Maybe this is appealing to more JRuby users who do not (yet) want to do the full switch to war-deployment. I've attached my changes (no test cases thought). -- 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