Skip to content

Commit 820ae5f

Browse files
Merge remote-tracking branch 'origin/main'
2 parents d2e820d + cad5238 commit 820ae5f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737

3838
# Configuration
39-
secret_key = os.environ.get("SECRET_KEY", "yay")
39+
secret_key = os.environ.get("SECRET_KEY", None)
4040
if secret_key is None:
4141
secret_key = secrets.token_hex(32)
4242
logging.warning("SECRET_KEY environment variable not set - Using random value")
@@ -498,5 +498,4 @@ def serve_static(filename):
498498
logging.warning("Database pool is not initialized due to the error.")
499499
finally:
500500
logging.info("Server Started!")
501-
app.run(debug=True)
502-
# serve(app, host='0.0.0.0', port=5000)
501+
serve(app, host='0.0.0.0', port=5000)

0 commit comments

Comments
 (0)