我,然後在文檔中的行步線,但我不斷收到此錯誤:麻煩啓動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