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