Add sleep and exit commands to deployment script
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 33s

This change introduces a 20-second sleep after starting the application, followed by an explicit exit command to ensure the script completes properly.
This commit is contained in:
hxuanyu 2024-11-04 18:57:53 +08:00
parent 42fee53e0b
commit 6f030087bd

View File

@ -71,3 +71,5 @@ jobs:
screen -ls
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 -ls
sleep(20)
exit 0