【发布时间】:2019-02-27 04:40:55
【问题描述】:
我有一个使用 Gunicorn 加载的 Pyramid 应用程序。我的ini文件有以下内容:
[app:main]
use = egg:my_example
...
[server:main]
use = egg:gunicorn
host = localhost
port = 5900
workers = 1
worker_class = gevent
我用 Gunicorn 启动:
gunicorn --paste ./development.ini
所以我的申请可以在http://127.0.0.1:5900获得
我需要做什么才能使我的应用程序在其他路径而不是 / 中可用,例如 http://127.0.0.1:5900/my_example
我看到了以下帖子: pyramid pserve in different root path than / 和Pyramid: how to set SCRIPT_NAME in request.environ,但我还是做不到
【问题讨论】: