From 449c643bef015d95a342c8c516719638a9bb0695 Mon Sep 17 00:00:00 2001 From: Rohan Singh Date: Sat, 2 Sep 2023 02:30:26 +0530 Subject: [PATCH] Fixed issues with production.yaml and docker-compose command in workflow --- .github/compose/production.yaml | 2 +- .github/workflows/deploy.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/compose/production.yaml b/.github/compose/production.yaml index 2c0b6e4..87e8cbd 100644 --- a/.github/compose/production.yaml +++ b/.github/compose/production.yaml @@ -6,5 +6,5 @@ services: container_name: lainforge-container ports: - 80:80 - - 443: 443 + - 443:443 restart: unless-stopped \ No newline at end of file diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 15bd363..a554fd1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -56,4 +56,4 @@ jobs: ssh -o StrictHostKeyChecking=no -i key.pem ubuntu@18.140.65.193 'docker rm $(docker ps -aq --filter status="exited")' - name: Restart using docker compose run: | - ssh -o StrictHostKeyChecking=no -i key.pem ubuntu@18.140.65.193 'docker-compose up -d -f production.yaml' + ssh -o StrictHostKeyChecking=no -i key.pem ubuntu@18.140.65.193 'docker-compose -f production.yaml up -d'