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.

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南