Skip to content

Commit d7be67a

Browse files
authored
Update deploy.yml
1 parent 193157a commit d7be67a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Deploy Backend to EC2
2222
run: |
2323
ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} -p ${{ secrets.EC2_PORT }} << 'EOF'
24-
cd /home/ec2-user/easyToFind-Frontend
24+
cd /home/ec2-user/easyToFind-Backend
2525
2626
echo "DB_HOST=${{ secrets.DB_HOST }}" > .env
2727
echo "DB_PORT=${{ secrets.DB_PORT }}" >> .env
@@ -33,7 +33,6 @@ jobs:
3333
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env
3434
3535
git pull origin main
36-
pnpm install
37-
pnpm build
38-
pm2 restart easytofind-frontend
36+
npm install
37+
pm2 restart easytofind-backend
3938
EOF

0 commit comments

Comments
 (0)