Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c00ed2e47 |
@@ -1777,4 +1777,6 @@ if __name__ == '__main__':
|
|||||||
print(" playwright: pip install playwright && playwright install chromium")
|
print(" playwright: pip install playwright && playwright install chromium")
|
||||||
|
|
||||||
print("\n🚀 Server running on http://0.0.0.0:16025")
|
print("\n🚀 Server running on http://0.0.0.0:16025")
|
||||||
app.run(host='0.0.0.0', port=16025, debug=True)
|
# 生产模式:不启用 debug reloader(reloader 主进程在 worker 意外退出后不会自动拉起,
|
||||||
|
# 曾导致服务静默挂掉),改代码后需手动重启:kill 进程后 nohup 重新启动
|
||||||
|
app.run(host='0.0.0.0', port=16025, debug=False, use_reloader=False, threaded=True)
|
||||||
Reference in New Issue
Block a user