wip
This commit is contained in:
parent
2ad04860a3
commit
f7f28b35ec
5 changed files with 33 additions and 6 deletions
4
wsgi.py
4
wsgi.py
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue