From 2c228e71b2ab75cb6aa2d01a59dafb31f974d32c Mon Sep 17 00:00:00 2001 From: Connor Bechthold Date: Thu, 14 Sep 2023 15:24:03 -0400 Subject: [PATCH] use HEROKU_DATABASE_URL instead of DATABASE_URL --- .github/workflows/heroku-deploy-dev-py.yml | 1 - backend/app/__init__.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/heroku-deploy-dev-py.yml b/.github/workflows/heroku-deploy-dev-py.yml index 9c3a6efc..afaaea9f 100644 --- a/.github/workflows/heroku-deploy-dev-py.yml +++ b/.github/workflows/heroku-deploy-dev-py.yml @@ -36,7 +36,6 @@ jobs: HEROKU_APP_NAME: "${{ secrets.HEROKU_APP_NAME }}" - name: Set Heroku config vars run: | - heroku config:set DATABASE_URL="${{ secrets.DATABASE_URL }}" -a $HEROKU_APP_NAME && \ heroku config:set FIREBASE_WEB_API_KEY="${{ secrets.FIREBASE_WEB_API_KEY }}" -a $HEROKU_APP_NAME && \ heroku config:set FIREBASE_REQUEST_URI="${{ secrets.FIREBASE_REQUEST_URI }}" -a $HEROKU_APP_NAME && \ heroku config:set FIREBASE_STORAGE_DEFAULT_BUCKET="${{ secrets.FIREBASE_STORAGE_DEFAULT_BUCKET }}" -a $HEROKU_APP_NAME && \ diff --git a/backend/app/__init__.py b/backend/app/__init__.py index b669175a..deaf286c 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -61,7 +61,7 @@ def create_app(config_name="development"): ), ) else: - app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DATABASE_URL") + app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("HEROKU_DATABASE_URL") app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False firebase_admin.initialize_app(