This commit is contained in:
pika 2025-03-31 17:40:16 +02:00
parent 2ad04860a3
commit f7f28b35ec
5 changed files with 33 additions and 6 deletions

View file

@ -2,6 +2,10 @@ import os
import secrets
from app import create_app
# Generate a secret key if not provided
if not os.environ.get("SECRET_KEY"):
os.environ["SECRET_KEY"] = secrets.token_hex(32)
# Get Flask environment
flask_env = os.environ.get("FLASK_ENV", "production")