简体   繁体   中英

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.

The ruby code will be compiled to java .class files and then bundled into a .war file using warbler .

This will probably be automated by 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.

What is the recommended way of doing "capistrano-like" deployment for .war files on Windows?

If you are building your application using Hudson/Jenkins, then it's as easy as adding an extra step to the build process itself.

I added an after-build step:

[X] Deploy war/ear to a container

  • WAR/EAR files : target/myapp.war
  • Container : Tomcat 6.x
  • Manager user name : admin
  • Manager password : passwordhere
  • Tomcat URL : http://ip.address.here:8080/ (note: don't add any path)

Everytime my build runs successfully, Jenkins deploys (or re-deploys) the new WAR file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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