Skip to content

Commit 590a849

Browse files
committed
fix: remove wrong step
1 parent 2c5da0e commit 590a849

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/production-workflow.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,14 @@ jobs:
2222
ssh-add ~/.ssh/id_rsa
2323
ssh-keyscan -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
2424
25-
- name: Transfer updated code to server
26-
run: |
27-
scp -r -i ~/.ssh/id_rsa . ubuntu@${{ secrets.HOST }}:~/backend-temp
28-
ssh -i ~/.ssh/id_rsa ubuntu@${{ secrets.HOST }} << 'EOF'
29-
rm -rf ~/backend
30-
mv ~/backend-temp ~/backend
31-
EOF
32-
3325
- name: Deploy and Restart on EC2
3426
run: |
3527
ssh -i ~/.ssh/id_rsa ubuntu@${{ secrets.HOST }} << 'EOF'
3628
cd ~/backend
3729
git pull origin main
3830
npm ci
39-
npx prisma generate
4031
npx prisma migrate deploy
32+
npx prisma generate
4133
npm run build
4234
pm2 reload cafe_backend
4335
EOF

0 commit comments

Comments
 (0)