我,然后在文档中的行步线,但我不断收到此错误:麻烦启动AWS环境和Django
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
我GOOGLE了四周,发现别人也有类似的问题,他们通过编辑解决它“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/.config' http://stackoverflow.com/questions/20558747/how-to-deploy-structured-flask-ap p-on-aws-elastic-beanstalk – kukido
确保它已提交并推送到AWS。 – kukido