Fix screen session name and log path

Corrected the screen session naming to avoid issues with spaces and updated the log file path for better organization.
This commit is contained in:
hxuanyu 2024-11-04 18:43:54 +08:00
parent 176d550072
commit 7d2984b5e7

@ -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 }} /usr/local/java/jdk1.8.0_202/bin/java -jar /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }}>apprun.log'
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