[英]eb config and .ebextensions/ - .ebextensions/ not working
It is my understanding that editing the config via eb config
and via .ebextensions/
both do the same thing.我的理解是通过eb config
和通过.ebextensions/
编辑配置都做同样的事情。 Using eb config
directly changes the config were using .ebextensions/
changes the config but is scripted, thus repeatable.使用eb config
直接更改配置正在使用.ebextensions/
更改配置,但是是脚本化的,因此是可重复的。
Is this correct?这个对吗?
Initially, I usesed ebconf
to change最初,我使用ebconf
来更改
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
WSGIPath: application
to至
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
WSGIPath: project.wsgi # <-- change
which worked and I was able to run my application.这有效,我能够运行我的应用程序。
I then decided I wanted to do all my changes thru .ebextensions/
.然后我决定我想通过.ebextensions/
进行所有更改。 I reverted the change made with eb config
and created the file .ebextensions/02_python.config
which contains:我恢复了使用eb config
所做的更改并创建了文件.ebextensions/02_python.config
,其中包含:
option_settings:
"aws:elasticbeanstalk:container:python":
WSGIPath: project.wsgi
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:environment:proxy:staticfiles":
"/static/": "static/"
after eb deploy
all the chages are reflected when I do eb config
except the WSGIPath value is not changed thus my app is no longer working.在eb deploy
之后,当我执行eb config
时,所有 chages 都会反映出来,除了WSGIPath值没有改变,因此我的应用程序不再工作。
Why is .ebextensions/02_python.config
not overwriting that one value?为什么.ebextensions/02_python.config
没有覆盖那个值?
Here is what I did to fix this issue.这是我为解决此问题所做的工作。
eb config
delete WSGIPath: application删除WSGIPath: 应用程序
save and wait for reload保存并等待重新加载
eb deploy
save and wait for reload保存并等待重新加载
eb config
verify the changes from the file are made!验证文件的更改是否已完成!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.