From 90915b48082e9ada86f8ac05a59b9fc7905d972b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bernacki?= Date: Sat, 16 Sep 2023 00:53:53 +0200 Subject: [PATCH] more debug (#9) --- .github/workflows/deploy.yaml | 1 - start.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 807c3fb..166aff8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -33,7 +33,6 @@ jobs: TOKEN_SYMMETRIC_KEY: ${{ secrets.TOKEN_SYMMETRIC_KEY }} run: echo "DB_DRIVER=postgres\nDB_SOURCE=${DB_SOURCE}\nSERVER_ADDRESS=0.0.0.0:8080\nTOKEN_SYMMETRIC_KEY=${TOKEN_SYMMETRIC_KEY}\nACCESS_TOKEN_DURATION=15m" > app.env - cat app.env - name: Build, tag, and push docker image to Amazon ECR env: REGISTRY: ${{ steps.login-ecr.outputs.registry }} diff --git a/start.sh b/start.sh index a0e1de2..6b7033b 100755 --- a/start.sh +++ b/start.sh @@ -9,6 +9,8 @@ echo "run db migration" # file so that it can be used in the migrate step here source /app/app.env cat /app/app.env +echo "value:" +echo $DB_SOURCE # When ran with dokcer-composee DB_SOURCE is defined in the docker-compose.yaml and the below command will later use its value /app/migrate -path /app/migration -database "$DB_SOURCE" -verbose up