我正在尝试在AWS上部署示例应用程序。我的文件夹结构:
eb_django_app
├── .ebextensions
│ └── 01-django_eb.config
├── .elasticbeanstalk
│ └── config.yml
├── predictfare
│ ├── .gitignore
│ ├── db.sqlite3
│ ├── manage.py
│ ├── predictfare
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── settings.py
│ │ ├── settings.pyc
│ │ ├── urls.py
│ │ ├── urls.pyc
│ │ ├── wsgi.py
│ │ └── wsgi.pyc
│ │
│ └── templates
│ └── base.html
└── requirements.txt
我的01-django_eb.config:
option_settings:
"aws:elasticbeanstalk:application:environment":
DJANGO_SETTINGS_MODULE: "predictfare.settings"
PYTHONPATH: "/opt/python/current/app/predictfare:$PYTHONPATH"
"aws:elasticbeanstalk:container:python":
WSGIPath: "predictfare/predictfare/wsgi.py"
我的config.yml:
branch-defaults:
default:
environment: faremagus-dev
group_suffix: null
global:
application_name: faremagus
default_ec2_keyname: aws-eb
default_platform: Python 2.7
default_region: us-west-2
profile: eb-cli
sc: null
日志显示:Target WSGI script not found or unable to stat: /opt/python/current/app/predictfare/predictfare
主要遵循this教程。当我运行eb open
时,我在浏览器中看到404。我错过了什么?