Update deployment script to use nohup for background execution
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 33s
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 33s
Changed the command to start the application using `nohup` within a `screen` session to ensure it runs in the background and logs both stdout and stderr. This change helps in maintaining the process even if the terminal session is closed.
This commit is contained in:
parent
52e400c6f3
commit
42fee53e0b
@ -69,5 +69,5 @@ jobs:
|
||||
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 -ls
|
||||
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 }} 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
|
Loading…
x
Reference in New Issue
Block a user