【发布时间】:2020-09-15 10:14:39
【问题描述】:
我正在尝试在 AWS 上部署一个应用程序,但遇到了这个错误并且找不到如何让它工作。
错误:
构建期间发生错误:命令 setuptools 失败
01_packages.config
packages:
yum:
git: []
postgresql-devel: []
libjpeg-turbo-devel: []
commands:
setuptools:
command: /opt/python/run/venv/bin/pip install setuptools --upgrade
我猜 AWS 最近发生了变化,因为这在我之前的部署中有效。
我也不得不改变
postgresql93-devel: []
到
postgresql-devel: []
因为它之前给出了以下错误:
Yum 没有可安装的 postgresql93-devel
db-migrate.congi
container_commands:
01_migrate:
command: "django-admin.py migrate --noinput"
leader_only: true
option_settings:
aws:elasticbeanstalk:application:environment:
DJANGO_SETTINGS_MODULE: app_name.settings
django.config
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: yantraksh_cargo/wsgi.py
wsgi_custom.config
files:
"/etc/httpd/conf.d/wsgihacks.conf":
mode: "000644"
owner: root
group: root
content: |
WSGIPassAuthorization On
【问题讨论】:
标签: amazon-web-services amazon-elastic-beanstalk setuptools