[英]Teamcity - How to run spring boot jar on server after Build and Deploy?
I have a Rest API based on Spring boot, embedded with jetty. 我有一个基于Spring boot的Rest API,嵌入了码头。 Normally I start it with
java -Dloader.path=blablabla -jar blablabla.jar
. 通常我以
java -Dloader.path=blablabla -jar blablabla.jar
。 I've configured a teamcity Build step to look for new check-ins to the git repo, pull and build (maven) the project, generate artifacts.. 我已经配置了teamcity Build步骤,以寻找新的git repo签入,拉出并构建(Maven)项目,生成工件。
Further, I've added a Deploy step which has dependency on Build step (successful completion and artifact dependency).. Here, I use powershell to push the artifacts to the server on which i want the rest service to run. 此外,我添加了一个Deploy步骤,该步骤依赖于Build步骤(成功完成和工件依赖)。在这里,我使用powershell将工件推送到要运行其余服务的服务器上。
A few questions: 几个问题:
1) Powershell - Is it the right way to publish files to the server from teamcity? 1)Powershell-是从teamcity将文件发布到服务器的正确方法吗?
2) How do i get the teamcity to actually start my spring boot app? 2)我如何获得团队协作才能真正启动我的Spring Boot应用程序? Some sort of a remote command execution?
某种远程命令执行?
Note: Both teamcity server and the app server are Windows. 注意:teamcity服务器和应用程序服务器均为Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.