From 597a7bb391c678e7e12af9ae0e2e4167b08c7038 Mon Sep 17 00:00:00 2001 From: Joshua Taillon Date: Fri, 16 Nov 2018 09:20:08 -0500 Subject: [PATCH] Update setup.rst The provided `gunicorn` command did not work for me, failing with the following error: ``` ModuleNotFoundError: No module named '/home/paperless/paperless/src/paperless' ``` The solution was to provide only `paperless.wsgi` as the argument to `gunicorn`, and provide a flag for `--pythonpath`. After changing it to this, the server started up fine. --- docs/setup.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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