쉘 추가
This commit is contained in:
parent
cdde700734
commit
4fb31362bc
19
deploy.sh
Normal file
19
deploy.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# PM2에서 'server' 애플리케이션 중지
|
||||
echo "Stopping PM2 application 'server'..."
|
||||
pm2 stop server
|
||||
|
||||
# Git에서 최신 코드 가져오기
|
||||
echo "Pulling latest code from git..."
|
||||
git pull
|
||||
|
||||
# PM2에서 'front' 애플리케이션 삭제
|
||||
echo "Deleting old PM2 application 'server'..."
|
||||
pm2 del server
|
||||
|
||||
# PM2로 애플리케이션 재시작
|
||||
echo "Starting PM2 application 'server'..."
|
||||
pm2 start npm --name "server" -- start
|
||||
|
||||
echo "Deployment completed!"
|
Loading…
Reference in New Issue
Block a user