We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2e820d + cad5238 commit 820ae5fCopy full SHA for 820ae5f
app.py
@@ -36,7 +36,7 @@
36
)
37
38
# Configuration
39
-secret_key = os.environ.get("SECRET_KEY", "yay")
+secret_key = os.environ.get("SECRET_KEY", None)
40
if secret_key is None:
41
secret_key = secrets.token_hex(32)
42
logging.warning("SECRET_KEY environment variable not set - Using random value")
@@ -498,5 +498,4 @@ def serve_static(filename):
498
logging.warning("Database pool is not initialized due to the error.")
499
finally:
500
logging.info("Server Started!")
501
- app.run(debug=True)
502
- # serve(app, host='0.0.0.0', port=5000)
+ serve(app, host='0.0.0.0', port=5000)
0 commit comments