diff --git a/JWT/deploy/runner.sh b/JWT/deploy/runner.sh index 7a31d29..13b6558 100755 --- a/JWT/deploy/runner.sh +++ b/JWT/deploy/runner.sh @@ -3,7 +3,7 @@ nohup java -jar $1 --spring.profiles.active=dev 2>&1 > out.log & echo "waiting for server to startup..." -sleep 60 +sleep 30 # after sleep, check server is still running. pid=$(sudo lsof -t -i :8080) diff --git a/JWT/deploy/startup.sh b/JWT/deploy/startup.sh index b76d5d0..1a91f94 100755 --- a/JWT/deploy/startup.sh +++ b/JWT/deploy/startup.sh @@ -8,6 +8,7 @@ script_dir=$(dirname "$0") exit_code=$? if [ $exit_code -ne 0 ]; then + echo "Error: there's some problems running new jar. recover backup jar." "${script_dir}/recover.sh" exit 1 fi