本文介绍了在Elastic Beanstalk上运行.config文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的弹性beantalk上运行一个自定义.config文件.我正在按照此链接上的说明进行操作.我创建了一个名为myapp.config
的文件,并将以下内容放入其中:
I'm trying to run a custom .config file on my elastic beanstalk. I'm following the directions on this link. I've created a file called myapp.config
, and put the following in it:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
运行此命令时,出现以下错误:
When I run this, I get the following error:
此错误确实是隐秘的.我在做什么错了?
This error is really cryptic. What am I doing wrong?
我的容器是apache tomcat 7.
My container is apache tomcat 7.
推荐答案
得到答案.显然空白很重要.我更改了:
Got the answer. Apparently whitespace is important. I changed:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf
/etc/httpd/conf.d/enable_mod_deflate.conf"
收件人:
container_commands:
01_setup_apache:
command: "cp .ebextensions/enable_mod_deflate.conf /etc/httpd/conf.d/enable_mod_deflate.conf"
现在可以使用了.
这篇关于在Elastic Beanstalk上运行.config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!