简体   繁体   English

如何创建.ebextensions / 01_packages.config文件?

[英]How can I create .ebextensions/01_packages.config file?

I am deploying my django app on Elastic Beanstalk and going through the tutorial step by step. 我正在Elastic Beanstalk上部署我的django应用程序并逐步完成本教程。 The is step involved "Customizing the Deployment Process" to add additional packages to Ec2. 步骤涉及“自定义部署过程”以向Ec2添加其他包。 I need to add the following packages: 我需要添加以下包:

packages:
  yum:
    git: []
    postgresql93-devel: []

and asked to create .ebextensions/01_packages.config at the root of the project and I am not abel to create it. 并要求在项目的根目录下创建.ebextensions / 01_packages.config并且我不能创建它。 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

And following code in 01_packages.config : 并在01_packages.config中跟随代码:

packages:
..yum:
....git: []
....postgresql93-devel: []

.(dot) you can refer it as number of spaces. 。(点)您可以将其称为空格数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM