简体   繁体   中英

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. 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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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