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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen