2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-30 00:21:34 +00:00

Update to Bare Metal installation docs (#10086)

* Install PostgreSQL client when needed

* Fix supervisor path to server/worker

* Supervisor IP configuration
This commit is contained in:
gunstr
2025-07-27 15:40:49 +02:00
committed by GitHub
parent 010c855e86
commit c8f82d3e90
3 changed files with 12 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ port = 127.0.0.1:9001
; InvenTree Web Server Process ; InvenTree Web Server Process
[program:inventree-server] [program:inventree-server]
user=inventree user=inventree
directory=/home/inventree/src/InvenTree directory=/home/inventree/src/src/backend/InvenTree
command=/home/inventree/env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi command=/home/inventree/env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi
startsecs=10 startsecs=10
autostart=true autostart=true
@@ -36,7 +36,7 @@ stdout_logfile=/home/inventree/log/server.out.log
; InvenTree Background Worker Process ; InvenTree Background Worker Process
[program:inventree-cluster] [program:inventree-cluster]
user=inventree user=inventree
directory=/home/inventree/src/InvenTree directory=/home/inventree/src/src/backend/InvenTree
command=/home/inventree/env/bin/python manage.py qcluster command=/home/inventree/env/bin/python manage.py qcluster
startsecs=10 startsecs=10
autostart=true autostart=true

View File

@@ -75,6 +75,8 @@ Copy the supervisor configuration file:
sudo cp /home/inventree/src/contrib/deploy/supervisord.conf /etc/supervisor/supervisord.conf sudo cp /home/inventree/src/contrib/deploy/supervisord.conf /etc/supervisor/supervisord.conf
``` ```
Depending on your setup the IP and port under the `[inet_http_server]` section might need to be changed.
### Start Supervisor Daemon ### Start Supervisor Daemon
``` ```

View File

@@ -163,6 +163,14 @@ The PostgreSQL python binding must also be installed (into your virtual environm
pip3 install psycopg pgcli pip3 install psycopg pgcli
``` ```
#### Install Postgresql client
If PostgreSQL and InvenTree are installed on separate servers / containers the PostgreSQL client has to be installed also where InvenTree is running.
```
sudo apt-get install postgresql-client
```
### MySQL / MariaDB ### MySQL / MariaDB
#### Install Backend #### Install Backend