엄지월드

[front] react jenkins 배포 본문

Server&DevOps

[front] react jenkins 배포

킨글 2024. 7. 8. 22:44

 

startup.sh

echo "server run"

serve -s build -l 8091 > /server/logs/travel-ui/travel-ui.log &

echo "server run done"

 

shutdown.sh

echo "PID CHECK..."

CURRENT_PID=$(ps -ef | grep node | grep 8091 | awk '{print $2}')

echo "Running PID : {$CURRENT_PID}"

if [ -z "$CURRENT_PID" ]
then
	echo "server is not running"
else
	sudo kill $CURRENT_PID
	echo "server shutdown done"
    sudo sleeop 10
fi

'Server&DevOps' 카테고리의 다른 글

AWS linux JDK11 설치  (0) 2024.08.06
aws linux에서 MySQL 설치 방법  (0) 2024.08.06
[back] java jar jenkins 배포(jenkins 자동배포)  (0) 2024.07.08
ubuntu find 허가 거부됨 제외  (0) 2023.10.08
zsh: command not found: mysql  (0) 2022.09.07
Comments