Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tedoaba committed Oct 28, 2024
1 parent 4f2c7f5 commit e9bde72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@ def create_app():
# Print environment information for debugging
print(f"Current Environment: {os.getenv('ENVIRONMENT')}")
print(f"Using Database: {app.config.get('SQLALCHEMY_DATABASE_URI')}")

if os.getenv('ENVIRONMENT') == 'Production':
app.config['DEBUG'] = False
else:
app.config['DEBUG'] = True


return app

0 comments on commit e9bde72

Please sign in to comment.