标签: java linux ubuntu unix jar
当前,为了将程序部署到ubuntu服务器,我必须执行以下步骤。 1. Compile the code using Gradle 2. Using FileZilla to move the jar to my server. 3. Connect to my server and find the process to kill it 4. restart the program.
1. Compile the code using Gradle 2. Using FileZilla to move the jar to my server. 3. Connect to my server and find the process to kill it 4. restart the program.
我很好奇我是否可以尝试其他替代方法。例如通过某种方式将我的jar部署到服务器并使其自动重启过程。
答案 0 :(得分:1)
您可以尝试使用Jenkins进行自动部署。
Jenkins
答案 1 :(得分:0)
让我们更改您的工作流程:
docker pull your-docker-image
docker run your-docker-image
第3步和第4步,您可以使用诸如ansible之类的一些自动工具来控制进度。