diff --git a/.github/workflows/db-update.yml b/.github/workflows/db-update.yml index c13e90821..2d824a60e 100644 --- a/.github/workflows/db-update.yml +++ b/.github/workflows/db-update.yml @@ -85,12 +85,12 @@ jobs: - name: Update .env file run: | - echo "POSTGRES_USER=${{ secrets.DB_USER_NAME }}" > config/.env.local echo "PGUSER=${{ secrets.DB_USER_NAME }}" >> config/.env.local echo "POSTGRES_PASSWORD=${{ secrets.DB_USER_PASSWORD }}" >> config/.env.local echo "POSTGRES_DB=${{ inputs.DB_NAME }}" >> config/.env.local echo "POSTGRES_PORT=5432" >> config/.env.local echo "POSTGRES_HOST=${{ env.DB_IP }}" >> config/.env.local + echo "FEEDS_DATABASE_URL=postgresql://${{ secrets.DB_USER_NAME }}:${{ secrets.DB_USER_PASSWORD }}@${{ env.DB_IP }}:5432/${{ inputs.DB_NAME }}" >> config/.env.local echo "ENV=dev" >> config/.env.local cat config/.env.local diff --git a/api/src/database/database.py b/api/src/database/database.py index 2ace6c6fc..8da31650c 100644 --- a/api/src/database/database.py +++ b/api/src/database/database.py @@ -43,7 +43,9 @@ def __init__(self): self.session = None self.connection_attempts = 0 self.SQLALCHEMY_DATABASE_URL = os.getenv("FEEDS_DATABASE_URL") + print(80 * '*') print(self.SQLALCHEMY_DATABASE_URL) + print(80 * '*') self.start_session() def is_connected(self):