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.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions