From 079a908c4ea04abe6a4e7f420c1b96e7c655debd Mon Sep 17 00:00:00 2001 From: Michael Appiah Dankwah Date: Sun, 20 Oct 2024 11:48:14 +0000 Subject: [PATCH] feat: Update welcome script --- .github/workflows/deploy.yml | 4 ++-- docker-compose.yml | 2 +- welcome_script.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a345aa8..902f67e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -190,7 +190,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + aws-region: eu-west-1 instance-ids: ${{ steps.get_instances.outputs.instance_ids }} working-directory: /home/ec2-user comment: "Running docker commands" @@ -259,7 +259,7 @@ jobs: - name: Remove env file from s3 if: always() - run: aws s3 rm s3://elcam-configdonotremove/.env.llm + run: aws s3 rm s3://${{ env.S3_BUCKET }}/.env create-release: diff --git a/docker-compose.yml b/docker-compose.yml index 87caf76..5d5a718 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: susdb: - image: 590183661216.dkr.ecr.us-east-1.amazonaws.com/susdb:latest + image: 590183661216.dkr.ecr.eu-west-1.amazonaws.com/susdb:latest container_name: susdb ports: - 8000:8000 diff --git a/welcome_script.sh b/welcome_script.sh index 55bc1c6..b536773 100644 --- a/welcome_script.sh +++ b/welcome_script.sh @@ -25,7 +25,7 @@ EOF # Start the Flask server echo "Starting SusDB server..." -python3 src/susdb_server.py & +python3 /app/src/susdb_server.py & # Wait for the server to start sleep 2