How can I create .ebextensions/01_packages.config

2019-08-04 06:53发布

问题:

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:

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.