docker中,1个nginx容器搭配多个django项目容器,设置各个uwsgi.ini的django项目路径
被这个卡了一下,真是,哎
各个uwsgi配置应该怎样设置项目路径
django项目1中创建的django项目名为 web
那么uwsgi.ini中要设置为
chdir = /home/luichun/lc/Pyfile/Pyweb/web
module = web.wsgi:application
django项目2中创建的django项目名为 app
那么uwsgi.ini中要设置为
chdir = /home/luichun/lc/Pyfile/Pyweb/app
module = app.wsgi:application
没有设置正确的django路径时,uwsgi的uwsgi.log中会记录以下报错
Mon Jul 15 04:47:45 2024 - --- no python application found, check your startup logs for errors ---
15/Jul/2024:04:47:45 +0800 | -
Mon Jul 15 04:47:45 2024 - --- no python application found, check your startup logs for errors ---
15/Jul/2024:04:47:45 +0800 | -