Skip to content

Commit

Permalink
fix: 배포 스크립트 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
PMtHk committed Nov 9, 2024
1 parent ec9ebeb commit 26da44a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/harmony
git fetch
git pull
chmod +x scripts/deploy.sh
./scripts/deploy.sh
./scripts/deploy.sh
11 changes: 7 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bash/bash
#!/bin/bash

PNPM="/root/.local/share/pnpm/pnpm"
PM2="/root/.nvm/versions/node/v22.11.0/bin/pm2"

git fetch
git pull

pnpm install
pnpm build
$PNPM install
$PNPM build

pm2 restart harmony-api || pm2 start apps/server/dist/main.js --name harmony-api
$PM2 restart harmony-api || $PM2 start apps/server/dist/main.js --name harmony-api

echo "deploy success"

0 comments on commit 26da44a

Please sign in to comment.