How do I properly deploy a Django and Celery app to Elastic Beanstalk?

0

I have a working Django application deployed currently via Elastic Beanstalk. I am wanting to add some asynchronous tasks to it. Locally I have been able to set up Celery, and Redis in my Django app and am able to perform these tasks. When attempting to deploy to elastic beanstalk I am adding the command: 06startworker: command: "source /var/app/venv/*/bin/activate && celery -A project worker --loglevel INFO -B &" To my python.config in my .ebextensions. When trying to deploy the new app. When I add this command, my command:

01wsgipass: command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf' ends up failing - I get : Command 01wsgipass succeeded Test failed with code 1

In my cfn-init.log. I am not sure why this is happening. I have confirmed that my redis connection is working.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠