【发布时间】:2021-09-19 04:12:12
【问题描述】:
您好,我正在尝试将我的 django 项目放到 AWS。
我在教程中做了以下事情 (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-configure-for-eb)
小米配置文件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 status)。
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.
我不知道为什么,因为我不知道为什么。
谢谢
【问题讨论】:
-
糟糕,我无法解决我的问题。我正在尝试使用 eb config 更新 WSGIPath,但它不起作用
-
你升级到新平台了吗?
-
我的 eb 健康是红色的
-
是的,我解决了这个问题,但现在我有另一个..
标签: python django amazon-web-services amazon-elastic-beanstalk