我正在尝试在我的弹性豆茎上运行自定义 .config 文件。我正在按照以下说明进行操作这个链接 http://www.tonmoygoswami.com/2013/05/how-to-enable-gzip-on-amazon-elastic.html。我创建了一个名为myapp.config
,并将以下内容放入其中:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
当我运行这个时,我收到以下错误:
应用程序版本 myapp-0.0.33-SNAPSHOT 中的配置文件 .ebextensions/myapp.config 中的“commands”必须是映射。更新配置文件中的“命令”。
这个错误确实很神秘。我究竟做错了什么?
我的容器是apache tomcat 7。
得到答案了。显然空白很重要。我变了:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf
/etc/httpd/conf.d/enable_mod_deflate.conf"
to:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
现在可以了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)