From dab560fa122bbc64dfc0e08dca3addf54bbfa583 Mon Sep 17 00:00:00 2001 From: hxuanyu <2252193204@qq.com> Date: Mon, 4 Nov 2024 19:55:40 +0800 Subject: [PATCH] Update Java application startup command Simplify the screen command to directly run the Java application, removing the unnecessary `base -c` and `nohup` parts. This change ensures a cleaner and more straightforward execution. --- .gitea/workflows/build-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml index 7c63a0a..db45ef2 100644 --- a/.gitea/workflows/build-deploy.yaml +++ b/.gitea/workflows/build-deploy.yaml @@ -68,4 +68,4 @@ jobs: script: | rm -f /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} mv /home/tools/${{ vars.APP_NAME }}/package/target/${{ vars.JAR_NAME }} /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} - screen -dmS ${{ vars.APP_NAME }} base -c 'nohup /usr/local/java/jdk1.8.0_202/bin/java -jar /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} > /home/tools/${{ vars.APP_NAME }}/apprun.log 2>&1 &' + screen -dmS ${{ vars.APP_NAME }} /usr/local/java/jdk1.8.0_202/bin/java -jar /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} > /home/tools/${{ vars.APP_NAME }}/apprun.log \ No newline at end of file