diff --git a/docs/setup.rst b/docs/setup.rst index bb8ac4018..e86fe9efe 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -366,7 +366,7 @@ The gunicorn server can be started with the command: .. code-block:: shell - $ /bin/gunicorn /src/paperless.wsgi -w 2 + $ /bin/gunicorn --pythonpath=/src paperless.wsgi -w 2 .. _setup-permanent-standard-systemd: @@ -423,7 +423,7 @@ after restarting your system: respawn limit 10 5 script - exec /bin/gunicorn /src/paperless.wsgi -w 2 + exec /bin/gunicorn --pythonpath=/src paperless.wsgi -w 2 end script Note that you'll need to replace ``/srv/paperless/src/manage.py`` with the diff --git a/scripts/paperless-webserver.service b/scripts/paperless-webserver.service index 6bc986cdd..771b8301f 100644 --- a/scripts/paperless-webserver.service +++ b/scripts/paperless-webserver.service @@ -4,7 +4,7 @@ Description=Paperless webserver [Service] User=paperless Group=paperless -ExecStart=/home/paperless/project/virtualenv/bin/gunicorn /home/paperless/project/src/paperless.wsgi -w 2 +ExecStart=/home/paperless/project/virtualenv/bin/gunicorn --pythonpath=/home/paperless/project/src paperless.wsgi -w 2 [Install] WantedBy=multi-user.target