diff --git a/roles/web-app-bookwyrm/templates/compose.yml.j2 b/roles/web-app-bookwyrm/templates/compose.yml.j2 index a5135912e2..81318d0613 100644 --- a/roles/web-app-bookwyrm/templates/compose.yml.j2 +++ b/roles/web-app-bookwyrm/templates/compose.yml.j2 @@ -3,11 +3,11 @@ application: {% include 'roles/sys-svc-container/templates/base.yml.j2' %} command: >- - bash -lc ' - python manage.py migrate --noinput && - python manage.py collectstatic --noinput && - (python manage.py initdb || true) && - python -m gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:{{ container_port }} + bash -c ' + /venv/bin/python manage.py migrate --noinput && + /venv/bin/python manage.py collectstatic --noinput && + (/venv/bin/python manage.py initdb || true) && + /venv/bin/python -m gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:{{ container_port }} ' {{ lookup('template', 'roles/sys-svc-container/templates/build.yml.j2') | indent(4) }} args: @@ -31,7 +31,7 @@ {% include 'roles/sys-svc-container/templates/base.yml.j2' %} image: "{{ BOOKWYRM_CUSTOM_IMAGE }}" container_name: "{{ BOOKWYRM_WORKER_CONTAINER }}" - command: "bash -lc 'celery -A celerywyrm worker -l INFO'" + command: "/venv/bin/celery -A celerywyrm worker -l INFO" pull_policy: never volumes: - 'data:/app/data'