2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-14 19:25:37 +00:00
This commit is contained in:
Oliver Walters
2021-03-24 22:42:32 +11:00
parent 6386f69213
commit f919ca2eed
3 changed files with 29 additions and 12 deletions

View File

@ -19,12 +19,6 @@ Install required system packages (as superuser).
First, install required system packages as per the [OS requirements](../intro#os-requirements).
Then, install the supervisor process manager:
```
sudo apt-get install supervisor
```
Next, install the system packages required for your particular database:
### MySQL
@ -134,6 +128,10 @@ Edit the configuration file at `/home/inventree/src/InvenTree/config.yaml`.
!!! warning "Configure Database"
Ensure database settings are correctly configured in `config.yaml` before proceeding to the next step!
## Create Database
!!! todo "TODO"
# Development Server
The InvenTree development server is useful for testing and configuration - and it may be wholly sufficient for a small-scale installation.
@ -159,6 +157,16 @@ inv server -a 192.168.120.1:8000
!!! warning "Not For Production"
It should be noted that the *development server* provided with django / InvenTree is probably not suitable for your production environment. Instead, use a proper web-server (such as Gunicorn, below).
## Install Supervisor
!!! todo "More details here"
Install the supervisor process manager:
```
sudo apt-get install supervisor
```
## Gunicorn
Following is a simple tutorial on serving InvenTree using [Gunicorn](https://gunicorn.org/). Gunicorn is a Python WSGI server which provides a multi-worker server which is well suited to handling multiple simultaneous requests. Gunicorn is a solid choice for a production server which is easy to configure and performs well in a multi-user environment.