diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index e6292812e..69d5e1721 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -20,7 +20,7 @@ services: restart: unless-stopped image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest} env_file: .env - command: python manage.py celery worker + command: celery -A funkwhale_api.taskapp worker -l INFO links: - postgres - redis diff --git a/deploy/funkwhale-worker.service b/deploy/funkwhale-worker.service index 2a25c2a1b..cb3c88307 100644 --- a/deploy/funkwhale-worker.service +++ b/deploy/funkwhale-worker.service @@ -8,7 +8,7 @@ User=funkwhale # adapt this depending on the path of your funkwhale installation WorkingDirectory=/srv/funkwhale/api EnvironmentFile=/srv/funkwhale/config/.env -ExecStart=/srv/funkwhale/virtualenv/bin/python manage.py celery worker +ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO [Install] WantedBy=multi-user.target