简体   繁体   中英

AWS Elastic Beanstalk Django - What happens first when deploying to EB, pip install -r requirements.txt or commands in configuration file

When deploying to the Elastic Beanstalk, in what order are all the dependencies installed? For one part, I have all my project dependencies in requirements.txt. This includes PIL . But for PIL I need to install libjpeg and other libraries as such (this is in .ebextensions/myapp.config

packages:
  yum:
    libjpeg-devel: []
    freetype-devel: []
    zlib-devel: []

... rest of config file

Only problem is, if pip is run first, I would have to reinstall Pillow which I do not know how to do

Documentation mentions that the Packages section is processed first.

The order in which these are processed are as follows:

  1. Packages

  2. Files

  3. Commands

  4. Services

  5. Container Commands

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