将django项目上载到aws时出现问题

pepwfjgg  于 2021-08-25  发布在  Java
关注(0)|答案(1)|浏览(315)

你好,我正试图把我的django的项目提交给aws。
在本教程中,我做了以下几件事(https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django(为eb配置)
mi配置文件django.config为:

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: ebdjango.wsgi:application

container_commands:
  01_postgresql:
    command: sudo yum -y install gcc python-setuptools python-devel postgresql-devel
  02_postgresql:
    command: sudo easy_install psycopg2

我创建了一个环境(eb create django-env1)。然后,当我这样做时,它会告诉我以下事情(eb状态)。

Environment details for: django-env1
  Region: us-west-2
  Deployed Version: app-b7ea-210708_181635
  Environment ID: e-ax2b7ff3bb
  Platform: arn:aws:elasticbeanstalk:us-west-2::platform/Python 2.6 running on 64bit Amazon Linux/2.9.15
  Tier: WebServer-Standard-1.0
  CNAME: django-env1.eba-b3pwjnx2.us-west-2.elasticbeanstalk.com
  Updated: 2021-07-08 16:19:37.455000+00:00
  Status: Ready
  Health: Green
Alert: Your environment is using a retired platform branch. It's no longer supported.

我不知道为什么,因为我不知道为什么。
非常感谢。

ztmd8pv5

ztmd8pv51#

您正在使用 Python 2.6 running on 64bit Amazon Linux/2.9.15 它不再受支持。您必须使用受支持的内容,例如

64bit Amazon Linux 2 v3.3.2 running Python 3.8

相关问题