【发布时间】:2014-10-10 15:10:27
【问题描述】:
我正在使用命令在 uWsgi 服务器中测试应用程序,
uwsgi --http :9090 --wsgi-file myapp.py --callable app --processes 4 --threads 2 --stats 127.0.0.1:9191
这会在 9090 端口上启动应用程序。我想为此写一个.ini 文件。但我坚持--http :9090 部分。它将如何写入ini 文件中?到目前为止,我的uwsgi.ini 文件看起来像这样,
[uwsgi]
wsgi-file = myapp.py
callable = app
processes = 4
threads = 2
stats = 127.0.0.1:9191
【问题讨论】:
-
在Here 中找到了解决方案。它将被写为
http = :9090。在发布问题之前不要不知道我是如何跳过它的。