Skip to content

Commit 50982de

Browse files
author
Eduardo
committed
chore: update deploy file
1 parent 9ec3e7e commit 50982de

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/DeployApp.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121

2222
- name: Deploy to EC2
2323
run: |
24-
ssh [email protected] << 'EOF'
25-
cd /home/ubuntu/chaxis-api
26-
export NVM_DIR="$HOME/.nvm"
27-
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
28-
git pull origin master
29-
npm install
30-
npx prisma migrate deploy
31-
npm run build
32-
EOF
24+
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
25+
cd /chaxis-api
26+
export NVM_DIR="$HOME/.nvm"
27+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
28+
git pull origin master
29+
npm install
30+
npm run build
31+
EOF

0 commit comments

Comments
 (0)