【发布时间】:2017-01-17 18:28:02
【问题描述】:
好的,所以我最近启动并运行了我的整个网站。但是,我切换了计算机并检索了我下载项目 ZIP 的网站代码。每当我运行 eb deploy 时,都会出现错误,因为它说我的 WSGI 指向一个不存在的文件。这是我的项目结构。
-suliman_baldo
-bin
-include
-lib
-suliman_baldo
-.ebextension
-01-flask.config
-django.config
-.elasticbeanstalk
-config.yml
-gallery
-main
-static
-templates
-suliman_baldo
-admin.py
-settings.py
-urls.py
-wsgi.py
这是我的 django.config 文件
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: suliman_baldo/wsgi.py
这很奇怪,因为项目结构和以前一样,但是 WSGI 路径发生了变化
【问题讨论】:
-
suliman_baldo/suliman_baldo 文件夹中有 wsgi.py 吗?
-
是的,我有一个。我刚刚通过使用 eb config 命令并将其写入其中解决了该错误。奇怪的东西。谢谢!
标签: django amazon-web-services amazon-ec2 amazon wsgi