【发布时间】:2014-01-08 12:01:40
【问题描述】:
我按照文档中的步骤逐行执行,但我不断收到此错误:
Your WSGIPath refers to a file that does not exist.
这是我的“.config”文件:(appname 和密钥除外)
container_commands:
01_syncdb:
command: "python manage.py syncdb --noinput"
leader_only: true
option_settings:
- namespace: aws:elasticbeanstalk:container:python
option_name: WSGIPath
value: [myapp]/wsgi.py
- option_name: DJANGO_SETTINGS_MODULE
value: [myapp].settings
- option_name: AWS_SECRET_KEY
value: XXXX
- option_name: AWS_ACCESS_KEY_ID
value: XXXX
我搜索了一下,发现其他人也有类似的问题,他们通过编辑“optionsettings.[myapp]”解决了这个问题,我不想删除我需要的东西,但这是我所拥有的:
[aws:autoscaling:asg]
Custom Availability Zones=
MaxSize=1
MinSize=1
[aws:autoscaling:launchconfiguration]
EC2KeyName=
InstanceType=t1.micro
[aws:autoscaling:updatepolicy:rollingupdate]
RollingUpdateEnabled=false
[aws:ec2:vpc]
Subnets=
VPCId=
[aws:elasticbeanstalk:application]
Application Healthcheck URL=
[aws:elasticbeanstalk:application:environment]
DJANGO_SETTINGS_MODULE=
PARAM1=
PARAM2=
PARAM3=
PARAM4=
PARAM5=
[aws:elasticbeanstalk:container:python]
NumProcesses=1
NumThreads=15
StaticFiles=/static/=static/
WSGIPath=application.py
[aws:elasticbeanstalk:container:python:staticfiles]
/static/=static/
[aws:elasticbeanstalk:hostmanager]
LogPublicationControl=false
[aws:elasticbeanstalk:monitoring]
Automatically Terminate Unhealthy Instances=true
[aws:elasticbeanstalk:sns:topics]
Notification Endpoint=
Notification Protocol=email
[aws:rds:dbinstance]
DBDeletionPolicy=Snapshot
DBEngine=mysql
DBInstanceClass=db.t1.micro
DBSnapshotIdentifier=
DBUser=ebroot
解决该问题的用户删除了某些行,然后执行了“eb start”。我删除了原始用户说他们删除的相同行,但是当我“开始”它时,我又遇到了同样的问题。
如果有人可以帮助我,那就太棒了!
【问题讨论】:
-
你需要更新
.ebextensions/.configstackoverflow.com/questions/20558747/… -
确保已提交并推送到 AWS。
标签: django amazon-web-services amazon-elastic-beanstalk