Skip to content

Commit f0e735d

Browse files
author
Eduardo
committed
chore: update deploy file
1 parent bfb7fe7 commit f0e735d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/DeployApp.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,15 @@ jobs:
1919
with:
2020
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2121

22-
- name: Add EC2 to known hosts
23-
run: |
24-
mkdir -p ~/.ssh
25-
ssh-keyscan -H ec2-18-228-31-193.sa-east-1.compute.amazonaws.com >> ~/.ssh/known_hosts
26-
27-
- name: Teste de conexão SSH
28-
run: |
29-
ssh -o StrictHostKeyChecking=no -v [email protected] "echo 'Conexão SSH bem-sucedida'"
30-
3122
- name: Deploy to EC2
3223
run: |
33-
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
24+
ssh [email protected] << 'EOF'
3425
cd /home/ubuntu/chaxis-api
3526
export NVM_DIR="$HOME/.nvm"
3627
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
3728
git pull origin master
3829
npm install
3930
npx prisma migrate deploy
31+
npm run prebuild
4032
npm run build
4133
EOF

0 commit comments

Comments
 (0)