Nick Div
Nick Div

Reputation: 5628

Is there a way to directly start tomcat with war file argument

I hate having to go to UI for Tomcat and re-deploy my application every time I do a compile. Is there a way I can do this while starting up the Tomcat

So something like startup.bat {-argument 'path to war file'}

Thanks in advance

Upvotes: 1

Views: 116

Answers (1)

Shmulik Klein
Shmulik Klein

Reputation: 3914

You can solve this by copying the WAR file to $CATALINA_HOME/webapps and Tomcat will automatically extract the WAR and redeploy it.

Upvotes: 1

Related Questions