Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,20 @@ jobs:
- name: Build app
run: pnpm run build

- name: Install PM2 globally
run: |
npm install -g pm2

- name: Restart app with PM2
run: |
pm2 startOrRestart ecosystem.config.js --env production
pm2 save
echo "=== 기존 프로세스 정리 ==="
pm2 stop washer-client || true
pm2 delete washer-client || true

echo "=== Next.js 직접 실행 ==="
# ecosystem.config.js 대신 직접 명령어로 실행
pm2 start npm --name "washer-client" -- start

echo "=== PM2 저장 및 최종 상태 ==="
pm2 save
pm2 list
Loading