我的主目录中有treeio项目,现在我想在Nginx服务器中运行treeio。treeio已经可以在源代码附带的Django上独立运行。我不想在Django服务器上运行它,但是我想在nginx服务器上运行它。我只是按照Karthik的答案中给出的步骤进行操作。
但是,从该答案执行或遵循步骤4进行操作时,它将引发以下错误:
[uWSGI] getting INI configuration from uwsgi.ini
* Starting uWSGI 1.0.3-debian (32bit) on [Thu Jun 27 17:22:01 2013] *
compiled with version: 4.6.3 on 17 July 2012 02:24:04
current working directory: /home/rajesh/treeio
detected binary path: /usr/bin/uwsgi-core
chdir(): No such file or directory [uwsgi.c line 1723]
我的uwsgi.ini
档案包含
[uwsgi]
# set the http port
http = :8080
# change to django project directory
chdir = /home/treeio/
# add /var/www to the pythonpath, in this way we can use the project.app format
pythonpath = /var/www
# set the project settings name
env = DJANGO_SETTINGS_MODULE=treeio.settings
# load django
module = django.core.handlers.wsgi:WSGIHandler()
请帮助我在Nginx服务器中部署treeio。
@ADR您是否曾经找到解决此问题的答案?
—
Mark Stosberg '16
uwsgi.ini
在您的问题中包括配置(和nginx)。并且还链接到您所指的步骤的答案/列表(它们在另一个问题中?)。