Skip to content

Commit 0a0ba69

Browse files
committed
chore: 배포 완료 후, Second Instance 종료 스크립트 추가
1 parent efd6eec commit 0a0ba69

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/CD.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ jobs:
5858
# Build
5959
pnpm build
6060
61+
# Start second instance
62+
pm2 start apps/server/ecosystem.config.js --only harmony-api2 --env production
63+
64+
sleep 5
65+
6166
# Restart first instance
62-
pm2 restart harmony-api --env production || pm2 start apps/server/ecosystem.config.js --env production
67+
pm2 restart apps/server/ecosystem.config.js --env production || pm2 start apps/server/ecosystem.config.js --env production
6368
64-
# Wait for server to start
6569
sleep 5
6670
67-
# Restart second instance
68-
pm2 restart harmony-api2 --env production || pm2 start apps/server/ecosystem.config.js --env production
71+
# Stop second instance
72+
pm2 stop harmony-api2
6973
7074
echo "Deployment Success"

0 commit comments

Comments
 (0)