use*_*682 4 python uwsgi python-2.7 python-3.x falconframework
我刚刚开始学习Falcon(http://falcon.readthedocs.org/en/latest/user/quickstart.html),但它需要运行一个Web服务器,并且文档建议使用uwsgi或gunicorn.
虽然他们已经提到如何使用它与gunicorn
$ pip install gunicorn #install
$ gunicorn things:app #and run app through gunicorn.
Run Code Online (Sandbox Code Playgroud)
但我想用uwsgi运行这个示例应用程序.但我不知道怎么做.
我pip install uwsgi也gevent按照http://falcon.readthedocs.org/en/latest/user/install.html的建议安装了它
但现在呢.有人指导我.
您可能会在uWSGI文档站点上找到答案,特别是尝试此页面:http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html
我从来没有使用过Falcon或uWSGI,但看起来你可能会逃脱:
uwsgi --wsgi-file things.py --callable app
Run Code Online (Sandbox Code Playgroud)