Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
450 views
in Technique[技术] by (71.8m points)

amazon ecs - Django Fargate. The requested resource was not found on this server

I have seem The requested resource was not found on this server, like a thousand times but none of the awnser match my problem.

I made this app from statch, and add a Dockerfile for it.

FROM python:3
ENV PYTHONUNBUFFERED=1
WORKDIR /www
COPY requirements.txt /www/
RUN pip install -r requirements.txt
COPY . /www/

EXPOSE 80
CMD [ "python", "manage.py", "runserver", "0.0.0.0:80" ]

Then i run this: docker build -t pasquin-django-mainapp . docker run pasquin-django-mainapp

I did that in my local environment, not woking. Y push this Dcokerfile to ECR and then use it in ECS + Fargate, same bada result. I dont know what else todo.

Somebody, help! thanks!

ps: From docker-compose works just marvelous!

question from:https://stackoverflow.com/questions/65931146/django-fargate-the-requested-resource-was-not-found-on-this-server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...