I have created a war file and put into tomcat/webapps
. How to deploy a war file to tomcat using command prompt?
i tried this it works quite well
curl --request PUT --upload-file webapp.war --basic --user user:password \
http://hostname:port/manager/text/deploy?path=/web_path\&update=true
it is based on the published tomcat manager API: https://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Deploy_A_New_Application_Archive_(WAR)_Remotely