如何在heroku上转向uwsgi的路由支持?

时间:2014-02-13 03:57:54

标签: heroku pip pcre uwsgi buildpack

我正在使用uwsgi在heroku上提供我的应用程序。部署时似乎不支持路由,因为某种程度上uwsgi是在没有正则表达式功能的情况下构建的。日志说:

!!! no internal routing support, rebuild with pcre support !!!

我已经从https://github.com/piotras/heroku-buildpack-pcre启用了buildpacks,它似乎支持在heroku机器上安装pcre(perl兼容的正则表达式)。

但是uwsgi仍然无法使用pcre / routing编译:

>heroku run pip install -I uwsgi

.. wall of text ..

################# uWSGI configuration #################

locking = pthread_mutex
json = False
zlib = True
kernel = Linux
debug = False
capabilities = False
xml = libxml2
routing = False
ssl = True
execinfo = False
malloc = libc
filemonitor = inotify
pcre = False
plugin_dir = .
yaml = embedded
event = epoll
ifaddrs = True
timer = timerfd

############## end of uWSGI configuration #############
total build time: 23 seconds
*** uWSGI is ready, launch it with /app/.heroku/python/bin/uwsgi ***

如何在heroku上的uwsgi中启用路由?

1 个答案:

答案 0 :(得分:0)

我怀疑uWSGI编译没有在编译路径中找到pcre源,因此无法将其添加进来。