1

我一直在 Windows 10 中使用 docker desktop 并使用它运行烧瓶应用程序。因此,当我更改 python 代码时,docker 将自动重启并执行。我们可以在 docker 桌面的容器日志中查看日志。但现在它只是显示如下:

Serving Flask app "web_app" (lazy loading)
 * Environment: development
 * Debug mode: on

相反,它需要

 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 139-055-956
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

这样我就可以检查实时日志。让我知道是否有解决方案可以查看包含上述详细信息的实时日志。

4

0 回答 0