问题
How do you make a war file auto deploy? The server component is glassfish and the database is created in MySQL. Do I need to create an executable file that will extract the war file? and how to do it so?
回答1:
It should be sufficient to copy/move your WAR file to the following folder:
$GLASSFISH_HOME/glassfish/domains/domain1/autodeploy
(You may change the domain name if you are using a different one.)
See also:
- How to to autodeploy war file with GlassFish
- WAR doesn't get redeployed in Glassfish from autodeploy
- Oracle GlassFish Server 3.0.1 Quick Start Guide - Deploying and Undeploying Applications
来源:https://stackoverflow.com/questions/22712508/how-to-make-a-war-file-auto-deploy