Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 2 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/harmony
git pull
pnpm install
pnpm build
pm2 start apps/server/dist/main.js harmony-api
chmod +x scripts/deploy.sh
./scripts/deploy.sh

11 changes: 11 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bash/bash

git fetch
git pull

pnpm install
pnpm build

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

echo "deploy success"
Loading