mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -366,7 +366,7 @@ The gunicorn server can be started with the command:
 | 
			
		||||
 | 
			
		||||
.. code-block:: shell
 | 
			
		||||
 | 
			
		||||
    $ <path-to-paperless-virtual-environment>/bin/gunicorn <path-to-paperless>/src/paperless.wsgi -w 2
 | 
			
		||||
    $ <path-to-paperless-virtual-environment>/bin/gunicorn --pythonpath=<path-to-paperless>/src paperless.wsgi -w 2
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
.. _setup-permanent-standard-systemd:
 | 
			
		||||
@@ -423,7 +423,7 @@ after restarting your system:
 | 
			
		||||
    respawn limit 10 5
 | 
			
		||||
 | 
			
		||||
    script
 | 
			
		||||
      exec <path to paperless virtual environment>/bin/gunicorn <path to parperless>/src/paperless.wsgi -w 2
 | 
			
		||||
      exec <path to paperless virtual environment>/bin/gunicorn --pythonpath=<path to parperless>/src paperless.wsgi -w 2
 | 
			
		||||
    end script
 | 
			
		||||
 | 
			
		||||
   Note that you'll need to replace ``/srv/paperless/src/manage.py`` with the
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user