且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将JRuby on Rails应用程序部署到Tomcat的***方法是什么?

更新时间:2023-08-28 11:36:46

我对此没有太多经验,所以不知道是否我可以给您***的方法,但是如果Capistrano无法正常工作,并且您无法单独安装MRI来运行它,那么您只剩下几种选择:

I don't have much experience on this, so I don't know if I can give you the BEST way, but if Capistrano doesn't work, and you can't have a separate MRI install just to run it, you have just a few alternatives left:

尝试运行普通Rake并编写自己的部署目标:
http://www.gra2.com/article.php/deploy-ruby-on-rails-applications-rake

Try running plain Rake and write your own deployment target: http://www.gra2.com/article.php/deploy-ruby-on-rails-applications-rake

或者使用Ant或Maven。

Or use Ant or Maven.

或者如果您仅要将它部署到一个服务器,则可以将两个Ruby脚本合在一起-一个监听服务器上的脚本关闭/启动请求,以及您要运行的一个本地:发送关闭,对文件进行scp,发送启动。

Or if it just ONE server you have to deploy to, you could just hack together two Ruby scripts - one that listens on the server for shutdown/startup requests, and one local that you run to: Send shutdown, scp over the file, send startup.

顺便说一句,您是否提交了任何集成错误在Capistrano中找到JRuby团队吗?我相信他们会很乐意为您做任何贡献。
:)

By the way, have you submitted any integration bugs you find with Capistrano to the JRuby team? I'm sure they'd be happy to have any contribution. :)