Skip to content

Commit

Permalink
fix connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Bechthold committed Sep 14, 2023
1 parent 2c228e7 commit f21c52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_app(config_name="development"):
"https://blueprintsupportivehousing.web.app",
re.compile("^https:\/\/blueprint-supportive-housing--pr.*\.web\.app$"),
]

CORS(app, resources={r"/*": {"origins": allowed_origins}}, supports_credentials=True)

if os.getenv("FLASK_CONFIG") != "production":
Expand All @@ -61,7 +61,7 @@ def create_app(config_name="development"):
),
)
else:
app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("HEROKU_DATABASE_URL")
app.config["SQLALCHEMY_DATABASE_URI"] = os.environ.get('HEROKU_DATABASE_URL').replace("postgres://", "postgresql://", 1)
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False

firebase_admin.initialize_app(
Expand Down

0 comments on commit f21c52c

Please sign in to comment.