Fix screen command syntax in build-deploy workflow
All checks were successful
Build and Deploy Spring Boot / build-and-deploy (push) Successful in 43s

The command to start the application via `screen` was updated to use single quotes around the entire command, ensuring that all parts of the command are correctly interpreted. This change helps in avoiding potential issues with spaces or special characters in the paths.
This commit is contained in:
hxuanyu 2024-11-04 19:57:46 +08:00
parent dab560fa12
commit 1df87052bd

View File

@ -68,4 +68,4 @@ jobs:
script: | script: |
rm -f /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} 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 }} 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 }} > /home/tools/${{ vars.APP_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'