Fixed celery worker defaulting to development settings instead of production

This commit is contained in:
Eliot Berriot 2019-01-25 15:39:48 +01:00
parent 293e526f2f
commit 37ca06c370
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ logger = logging.getLogger("celery")
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "config.settings.local"
"DJANGO_SETTINGS_MODULE", "config.settings.production"
) # pragma: no cover
app = celery.Celery("funkwhale_api")

View File

@ -0,0 +1 @@
Fixed celery worker defaulting to development settings instead of production