【发布时间】:2015-03-18 02:11:38
【问题描述】:
我的项目的.ebextensions 目录中有一个config 文件,其中包含
option_settings:
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "sitetest/static/"
但我的 EB 环境不会更改 /static/ 的设置以响应将其推送到 AWS。
我可以验证同一目录中的其他 config 设置 - 例如环境变量使用
option_settings:
"aws:elasticbeanstalk:application:environment":
SOME_VAR: "foo"
或者对于容器命令使用
container_commands:
00_syncdb:
command: "python manage.py db upgrade"
leader_only: true
按预期行事。
为什么 AWS Elastic Beanstalk 的静态路径没有根据我的配置文件中的设置而改变?
【问题讨论】:
-
您是否尝试过使用 Web 控制台设置值?
-
是的,没问题。
标签: amazon-web-services settings amazon-elastic-beanstalk