简体   繁体   English

AWS EB WSGI路径指的是不存在的文件

[英]AWS EB WSGI path refers to a file that doesn't exist

I have a Django app that I'm trying to deploy to AWS Elastic Beanstalk but I'm getting the following error during the deployment: 我有一个Django应用程序,我正在尝试部署到AWS Elastic Beanstalk但是我在部署期间收到以下错误:

2019-04-14 20:50:20    ERROR   Your WSGIPath refers to a file that does not exist.

I have updated the wsgi settings following this guide : 我已按照本指南更新了wsgi设置:

aws:elasticbeanstalk:container:python:
    NumProcesses: '1'
    NumThreads: '15'
    StaticFiles: /static/=static/
    WSGIPath: Appname/wsgi.py
  aws:elasticbeanstalk:container:python:staticfiles:
    /static/: static/

The .ebextensions directory along with the elasticbeanstalk, the main django project folder (containing the settings and wsgi files) are all in the same directory: .ebextensions目录以及elasticbeanstalk,主django项目文件夹(包含设置和wsgi文件)都在同一目录中:

.ebextensions
elasticbeanstalk
Appname
  - __init__.py
  - settings.py
  - urls.py
  - wsgi.py

What could be causing the wsgi file to not be found? 什么可能导致找不到wsgi文件?

You explained that the Appname directory contains this file 您解释说Appname目录包含此文件

  • wsgy.py wsgy.py

Yet the config uses i rather than y : 然而配置使用i而不是y

    WSGIPath: Appname/wsgi.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS WSGIPath 引用了一个不存在的文件 - AWS WSGIPath refers to a file that does not exist 将 Django 部署到 AWS - WSGIPath 指的是一个不存在的文件 - Deploying Django to AWS - WSGIPath refers to a file that does not exist Django AWS Elastic Beanstalk WSGIPath是指不存在的文件 - Django AWS Elastic Beanstalk WSGIPath refers to a file that does not exist 尝试部署django和wsgi无法导入我的设置文件-配置不正确/模块不存在 - trying to deploy django and wsgi can't import my settings file - improperly configured/module doesn't exist 为什么在AWS EB Python部署中,whitenoise与django不兼容? - Why doesn't whitenoise work with django on AWS EB Python deployments? .env 文件未复制到 AWS EB 上的 docker 容器中 - .env file didn't copy into docker container on AWS EB 姜戈; AWS Elastic Beanstalk 错误:您的 WSGIPath 引用了一个不存在的文件 - Django; AWS Elastic Beanstalk ERROR: Your WSGIPath refers to a file that does not exist uWSGI无法识别--http或--wsgi-file选项 - uWSGI doesn't recognize --http nor --wsgi-file options 标头之前的脚本输出结束:wsgi.py将python django部署到AWS EB - End of script output before headers: wsgi.py deploying python django to AWS EB AWS Elastic Beanstalk:WSGI 路径不正确? - AWS Elastic Beanstalk: WSGI path incorrect?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM