How can I create .ebextensions/01_packages.config

2019-08-04 06:52发布

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: []

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!

1条回答
劫难
2楼-- · 2019-08-04 07:06

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 :

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

.(dot) you can refer it as number of spaces.

查看更多
登录 后发表回答