[Answered ]-Celery .env variables not used in settings.py

2👍

The big mistake I made was concerning running the celery worker separate from the commandline with this code:

celery -A xlink worker -l info

adding this line of code to the procfile and running with the heroku command solved this issue.

profile:

web: gunicorn xlink.wsgi --threads 4 --log-level debug
worker: celery -A xlink worker -l info

command to get it running:

heroku local worker

If you want to run both the worker and the web app in one terminal window, just do heroku local and both start simultaneously in one terminal window.

thanks for the hints @Daniel Roseman

Leave a comment