3

我有一个 Ubuntu 12.04 服务器设置,当前在 Passenger / Nginx 安装上运行 Ruby on Rails 应用程序。我决定尝试一些 Python 并使用Bottle编写了一个小应用程序。我想将此应用程序部署到我的服务器。我按照本指南设置我的服务器以运行 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

哪个是:

  • pymongo
  • 美丽的汤
  • 瓶子

我的问题是:如何将这个简单的应用程序部署到我的服务器上?
谢谢

4

1 回答 1

2

我发现Passenger 将运行WSGI 应用程序。我按照这篇文章http://kbeezie.com/using-python-nginx-passenger/上的说明进行操作,并且没有遇到任何问题。

最后其实很简单。

这是我的适配器,以防其他人遇到问题:

https://github.com/nick-desteffen/astronomy-pics/blob/master/passenger_wsgi.py

于 2012-12-18T20:48:50.847 回答