简体   繁体   中英

On-demand deployment of war files into Tomcat from a network share?

I am a newbie to Tomcat; I would like to deploy a war file stored on a network share into a running Tomcat instance. I would appreciate any suggestions.

Take a look at Tomcat's Manager, in particular, how to deploy a new application remotely and how to reload an existing application .

In summary, you'll need to ensure that your WAR is reachable via some sort of URL from the machine running Tomcat. URLs can use http or file scheme.

You mention a network share, so in your particular case you may need to mount the network share so it appears to be a local directory. (Windows URL example follows):

file:/X:/path/to/war/

You could also try hosting the war file with a web server, and using an http url. (You might already be doing this if you're using a continuous integration server like Bamboo or Hudson.) For example:

http://builds.example.com/path/to/war

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