我有一个Ubuntu12.04服务器设置,它目前在客运/ Nginx安装上运行Rails应用程序。我决定玩一些Python,并使用瓶编写了一个小应用程序。我想将这个应用程序部署到我的服务器上。我遵循本指南设置服务器来运行Python应用程序。当我运行sudo service uwsgi restart时,会收到以下错误消息:
Restarting app server(s) uwsgi
[uWSGI] getting INI configuration from
/usr/share/uwsgi/conf/default.ini [uWSGI] parsing config file /etc/uwsgi/apps-enabled/example.net.xml
open("./python_plugin.so"): No such file or directory [core/utils.cline 4700]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
Sat Dec 8 18:29:14 2012 - [WARNING] option "app" is deprecated: use the more advanced "mount" option我真的对Python一无所知,我已经通过easy_install安装了我需要的插件
它们是:
我的问题是:如何将这个简单的应用程序部署到我的服务器上?
谢谢
发布于 2012-12-18 20:48:50
我发现乘客会运行WSGI应用程序。我遵循了这篇文章http://kbeezie.com/using-python-nginx-passenger/上的说明,没有遇到让它工作的困难。
其实这最终是相当容易的。
这是我的适配器,以防其他人有麻烦:
https://stackoverflow.com/questions/13782402
复制相似问题