如何创建.ebextensions/01_packages.config文件? [英] How can I create .ebextensions/01_packages.config file?
问题描述
我正在将我的django应用程序部署在Elastic Beanstalk上,并逐步完成本教程.步骤涉及自定义部署过程",以将其他软件包添加到Ec2.我需要添加以下软件包:
I am deploying my django app on Elastic Beanstalk and going through the tutorial step by step. The is step involved "Customizing the Deployment Process" to add additional packages to Ec2. I need to add the following packages:
packages:
yum:
git: []
postgresql93-devel: []
,并要求在项目的根目录下创建.ebextensions/01_packages.config,我不愿意创建它.任何人都可以帮助我.谢谢!
and asked to create .ebextensions/01_packages.config at the root of the project and I am not abel to create it. Anyone please help me with that. Thanks!
推荐答案
以下内容可能对您有帮助:
Following may help you:
您需要遵循以下层次结构:
You need to follow following hierarchy :
ProjectFolder
settings.py
urls.py
App1
models.py
views.py
.ebextensions
01_packages.config
.elasticbeanstalk
config.yml
.git
manage.py
requirements.txt
.gitignore
然后是01_packages.config中的以下代码:
And following code in 01_packages.config :
packages:
..yum:
....git: []
....postgresql93-devel: []
.(点),您可以将其称为空格数.
.(dot) you can refer it as number of spaces.
这篇关于如何创建.ebextensions/01_packages.config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!