mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-29 16:11: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:
@@ -23,7 +23,7 @@ port = 127.0.0.1:9001
|
||||
; InvenTree Web Server Process
|
||||
[program:inventree-server]
|
||||
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
|
||||
startsecs=10
|
||||
autostart=true
|
||||
@@ -36,7 +36,7 @@ stdout_logfile=/home/inventree/log/server.out.log
|
||||
; InvenTree Background Worker Process
|
||||
[program:inventree-cluster]
|
||||
user=inventree
|
||||
directory=/home/inventree/src/InvenTree
|
||||
directory=/home/inventree/src/src/backend/InvenTree
|
||||
command=/home/inventree/env/bin/python manage.py qcluster
|
||||
startsecs=10
|
||||
autostart=true
|
||||
|
@@ -75,6 +75,8 @@ Copy the supervisor configuration file:
|
||||
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
|
||||
|
||||
```
|
||||
|
@@ -163,6 +163,14 @@ The PostgreSQL python binding must also be installed (into your virtual environm
|
||||
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
|
||||
|
||||
#### Install Backend
|
||||
|
Reference in New Issue
Block a user