Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent tomcat from starting application on deploy

Is there any way to tell Tomcat not to automatically start application which I want to deploy? I'd like to this manually.

like image 979
jjczopek Avatar asked Nov 09 '10 09:11

jjczopek


Video Answer


2 Answers

In CATALINA_HOME/conf/server.xml:

<Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" 
    xmlNamespaceAware="false" xmlValidation="false">

Note the autoDeploy="false"

like image 61
Bozho Avatar answered Oct 13 '22 00:10

Bozho


I understand your question as not deploying your app on starting Tomcat - if so,

At the <Host> in server.xml, deployOnStartup attribute set to false should do it.

But that will affect all webapps on that server. The default is true

like image 20
JoseK Avatar answered Oct 12 '22 23:10

JoseK