我的理解是通过eb config
和通过.ebextensions/
两者编辑配置做同样的事情。直接使用eb config
更改配置正在使用.ebextensions/
更改配置,但是是脚本化的,因此是可重复的。
这个对吗?
最初,我习惯于ebconf
改变
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
WSGIPath: application
至
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
WSGIPath: project.wsgi # <-- change
这有效,我能够运行我的应用程序。
然后我决定我想通过.ebextensions/
. 我恢复了所做的更改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/"
eb deploy
在我这样做之后,eb config
除了WSGIPath值没有改变,因此我的应用程序不再工作之外,所有 chages 都得到了反映。
为什么.ebextensions/02_python.config
不覆盖那个值?