简体   繁体   中英

Does .ebextensions or requirements.txt run first in Elastic Beanstalk

the .config file in .ebextensions or requirements.txt runs first?

I want to install psycopg2 present in requirements.txt for that, I need to install postgresql-devel , python-devel packages installed first.

When I create my config settings like

requirements.txt

psycopg2

.ebextensions/mysite.config

packages:
  yum:
    gcc: []
    python-devel: []
    postgresql-devel: []
  1. From the logs, I observed that, requirements.txt executed first, thus raising errors as prerequisites are not installed.

  2. yum is raising postgresql-devel is not found in packages.

How do I fix these? Where I am going wrong?

I was having the same error and got it to work specifying a version

packages:
  yum:
    libxslt-devel: ''
    postgresql93-devel: []

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