Skip to content

Commit 75bdd88

Browse files
git commit -m 'updated autodeply'
1 parent cf7a42a commit 75bdd88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/autodeploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
- name: Deploy to Google Cloud VM
3939
run: |
4040
ssh -i private_key -o StrictHostKeyChecking=no ${{ secrets.GCP_USERNAME }}@${{ secrets.GCP_VM_IP }} << 'EOF' #this might be causing errors
41-
cd /var/www/myapp || (mkdir -p /var/www/myapp && cd /var/www/myapp)
41+
cd /root/term-group-project-c01w25-project-course-matrix || { echo "Error: Directory /root/myapp does not exist!"; exit 1; }
4242
git pull origin ms/Scrun-130-Project-Deployment-dockerfiles
43-
docker-compose down
44-
docker-compose build
45-
docker-compose up -d --remove-orphans
43+
cd course-matrix
44+
docker compose build
45+
docker compose up -d --remove-orphans
4646
EOF

0 commit comments

Comments
 (0)