We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5da0e commit 590a849Copy full SHA for 590a849
.github/workflows/production-workflow.yml
@@ -22,22 +22,14 @@ jobs:
22
ssh-add ~/.ssh/id_rsa
23
ssh-keyscan -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
24
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
-
33
- name: Deploy and Restart on EC2
34
run: |
35
ssh -i ~/.ssh/id_rsa ubuntu@${{ secrets.HOST }} << 'EOF'
36
cd ~/backend
37
git pull origin main
38
npm ci
39
- npx prisma generate
40
npx prisma migrate deploy
+ npx prisma generate
41
npm run build
42
pm2 reload cafe_backend
43
EOF
0 commit comments