Remote development workflow with Tomcat and Eclipse

I currently have tomcat installed on a production server to serve my java web applications. I am developing in eclipse on my personal workstation and then I use an ant script to create a project in a war file and deploy it to the server.

This setup works well when I am on the same network as the server, because the deployment is almost instantaneous. However, now that I'm working, remote uploading the war file to the server is slow and very redundant in most cases (the war file contains about 0.5GB of static files).

Is there a better way to update my tomcat webapp from eclipse, and if so, what are the best options to implement such a solution with minimal effort?

+2


a source to share


2 answers


Checkout rsync . It only transfers updates to the file, so it will speed up your process significantly. Also, depending on how complex your application is, you might want to look at jetty on your personal workstation. It works great with eclipse and allows you to instantly check out new code.



+1


a source


It looks like you want the exploded wars file (your root app / ant compilation result) to be in the tomcat web apps folder. Tomcat will deploy it based on the host tag or context in the server.xml file.



This way you can just drop your $ app / WEB-INF / apps into the app and if contextual reload is enabled, new files will be deployed immediately.

0


a source







All Articles