优化docker容器
This commit is contained in:
@@ -911,5 +911,6 @@ def server_error(error):
|
||||
return render_template('500.html'), 500
|
||||
|
||||
if __name__ == '__main__':
|
||||
debug_mode = os.getenv('FLASK_DEBUG', 'True').lower() in ('true', '1', 'yes')
|
||||
# use_reloader=False 避免 Windows 终端 QuickEdit 模式导致进程挂起
|
||||
app.run(debug=True, port=5000, use_reloader=False)
|
||||
app.run(host='0.0.0.0', debug=debug_mode, port=5000, use_reloader=False)
|
||||
|
||||
Reference in New Issue
Block a user