簡體   English   中英

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

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM