[英]AWS EB WSGI path refers to a file that doesn't exist
我有一个Django应用程序,我正在尝试部署到AWS Elastic Beanstalk但是我在部署期间收到以下错误:
2019-04-14 20:50:20 ERROR Your WSGIPath refers to a file that does not exist.
我已按照本指南更新了wsgi设置:
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
StaticFiles: /static/=static/
WSGIPath: Appname/wsgi.py
aws:elasticbeanstalk:container:python:staticfiles:
/static/: static/
.ebextensions目录以及elasticbeanstalk,主django项目文件夹(包含设置和wsgi文件)都在同一目录中:
.ebextensions
elasticbeanstalk
Appname
- __init__.py
- settings.py
- urls.py
- wsgi.py
什么可能导致找不到wsgi文件?
您解释说Appname
目录包含此文件
- wsgy.py
然而配置使用i
而不是y
:
WSGIPath: Appname/wsgi.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.