【发布时间】:2020-09-11 22:43:14
【问题描述】:
我正在尝试使用 python 和 Flask 构建一个 Web 应用程序。我开始在 Ubuntu 上开发它,到目前为止它工作正常。
但是,将项目拉入安装了相同先决条件的 Windows 环境不起作用。更详细一点,运行输出看起来还不错
* Serving Flask app "main" (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: 239-929-141
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
但是当访问 0.0.0.0:8080 时,浏览器无法访问它。并且没有更多与正在发生的事情相关的输出。
我也使用基本的 hello world flask 应用程序对此进行了测试,结果是相同的(在 Windows 上)。知道操作系统是否是这里的问题吗?或者还能是什么?
【问题讨论】:
标签: python linux windows flask web-applications