简体   繁体   English

是否将JRuby on Rails自动部署到Windows上的Tomcat?

[英]Automated deployment of JRuby on Rails to Tomcat on Windows?

Our team is looking at developing a rails app to be deployed on a Windows server running JRuby fronted by Tomcat. 我们的团队正在研究开发一个rails应用程序,以将其部署在运行Tomcat的JRuby的Windows服务器上。

The ruby code will be compiled to java .class files and then bundled into a .war file using warbler . 红宝石代码将被编译为java .class文件,然后使用warbler捆绑为.war文件。

This will probably be automated by hudson. 可能会由hudson自动进行。

We've been using capistrano for "normal" rails deployment and love it but i'm not sure how effective it would be with .war files on Windows. 我们一直在使用capistrano进行“正常”的Rails部署,并且喜欢它,但是我不确定Windows上的.war文件的效果如何。

What is the recommended way of doing "capistrano-like" deployment for .war files on Windows? 在Windows上对.war文件进行“类似于Capistrano式”部署的推荐方式是什么?

If you are building your application using Hudson/Jenkins, then it's as easy as adding an extra step to the build process itself. 如果您使用Hudson / Jenkins构建应用程序,那么就像在构建过程本身中添加了额外的步骤一样简单。

I added an after-build step: 我添加了一个构建后步骤:

[X] Deploy war/ear to a container [X]将战争/耳朵部署到集装箱

  • WAR/EAR files : target/myapp.war WAR / EAR文件 :target / myapp.war
  • Container : Tomcat 6.x 容器 :Tomcat 6.x
  • Manager user name : admin 管理员用户名 :admin
  • Manager password : passwordhere 管理员密码此处密码
  • Tomcat URL : http://ip.address.here:8080/ (note: don't add any path) Tomcat URLhttp : //ip.address.here : 8080/ (注意:请勿添加任何路径)

Everytime my build runs successfully, Jenkins deploys (or re-deploys) the new WAR file. 每当我的构建成功运行时,Jenkins都会部署(或重新部署)新的WAR文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM