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.

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则