Cli*_*ote 8 yaml amazon-web-services amazon-elastic-beanstalk
我正在尝试在弹性beanstalk上运行自定义.config文件.我正按照此链接上的说明进行操作.我创建了一个名为的文件myapp.config,并在其中加入以下内容:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
Run Code Online (Sandbox Code Playgroud)
当我运行它时,我收到以下错误:
应用程序版本中的配置文件.ebextensions/myapp.config中的"命令"myapp-0.0.33-SNAPSHOT必须是一个映射.更新配置文件中的"命令".
这个错误真的很神秘.我究竟做错了什么?
我的容器是apache tomcat 7.
Cli*_*ote 18
得到了答案.显然空白很重要.我变了:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf
/etc/httpd/conf.d/enable_mod_deflate.conf"
Run Code Online (Sandbox Code Playgroud)
至:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
Run Code Online (Sandbox Code Playgroud)
现在它的工作原理.
| 归档时间: |
|
| 查看次数: |
6624 次 |
| 最近记录: |