简体   繁体   English

如何自动化TC Server War部署

[英]How to automate TC Server war deployment

I download TC server STANDARD edition on my computer because this is the installed one on QA servers. 我在计算机上下载了TC服务器标准版,因为这是质量检查服务器上安装的版本。 My final goal is to write a maven task to deploy a war app in a distant tc server's instance. 我的最终目标是编写一个Maven任务,以在远程tc服务器的实例中部署war应用程序。

Because of the use of the standard edition, tomcat manager is not pre-installed (so I cannot use maven's cargo plugin anymore). 由于使用了标准版,因此未预安装tomcat管理器(因此我无法再使用maven的cargo插件)。

So is there any method to deploy my jar in a distant server instance without putting it manually in webapp folder ? 那么,有什么方法可以将jar部署到远程服务器实例中,而无需将其手动放置在webapp文件夹中?

Thanks in advance ! 提前致谢 !

Here are a several options: 这里有几个选项:

1) Our latest release 3.2.x (standard) introduced the tomcat-manager template which will set up the Manager webapp and secure it for a production environment. 1)我们的最新版本3.2.x(标准)引入了tomcat-manager模板,该模板将设置Manager webapp并在生产环境中对其进行保护。

2) You can also use the developer edition of tc Server. 2)您也可以使用tc Server的开发人员版本。 If it is the same version it will be nearly identical, it just will not contain some of the templates in the standard edition. 如果是相同版本,则几乎是相同的,它将仅不包含标准版本中的某些模板。

3) Add a maven target that copies the Manager webapp to the webapps folder. 3)添加一个将Manager Webapp复制到webapps文件夹的Maven目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM