From d0e1dc52f8517edc2c28609ae92c62bfc9fdebac Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 11 Jul 2019 23:57:07 +1000 Subject: [PATCH] Example gunicorn conf file --- .gitignore | 3 ++- InvenTree/gunicorn.conf.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 InvenTree/gunicorn.conf.py diff --git a/.gitignore b/.gitignore index f251804992..8cf83e1908 100644 --- a/.gitignore +++ b/.gitignore @@ -31,8 +31,9 @@ local_settings.py # Sphinx files docs/_build -# Local media storage (only when running in development mode) +# Local static and media file storage (only when running in development mode) InvenTree/media +InvenTree/static # Key file secret_key.txt diff --git a/InvenTree/gunicorn.conf.py b/InvenTree/gunicorn.conf.py new file mode 100644 index 0000000000..a117c05144 --- /dev/null +++ b/InvenTree/gunicorn.conf.py @@ -0,0 +1,5 @@ +import multiprocessing + +bind = "0.0.0.0:8000" + +workers = multiprocessing.cpu_count() * 2 + 1 \ No newline at end of file