[英]Tomcat deploy context root via commandline
How can I deploy my war file at / via commandline?我如何通过命令行部署我的 war 文件? The following does not work:以下不起作用:
curl -X PUT --upload-file ROOT.war "http://localhost:8080/manager/text/deploy?path=/" -u 'admin:password'
It insteads gets deployed at /ROOT.war.它反而被部署在 /ROOT.war。
Thanks!谢谢!
Everything is working as it is supposed to work: the base file name of the empty context path is ROOT
(see naming scheme ).一切都按预期工作:空上下文路径的基本文件名是ROOT
(请参阅命名方案)。 Therefore a WAR file for the root context will be uploaded to $CATALINA_BASE/webapps/ROOT.war
.因此,根上下文的 WAR 文件将上传到$CATALINA_BASE/webapps/ROOT.war
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.