Update install.txt
This commit is contained in:
+5
-5
@@ -56,8 +56,8 @@ open 'fleet-control.service' and ensure the paths point to your
|
|||||||
virtual environment.
|
virtual environment.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
WorkingDirectory=/opt/web-control-server
|
WorkingDirectory=/opt/fleet-control-server
|
||||||
ExecStart=/opt/web-control-server/venv/bin/gunicorn -k ...
|
ExecStart=/opt/fleet-control-server/venv/bin/gunicorn -k ...
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
1. Copy .service file to '/etc/systemd/system/':
|
1. Copy .service file to '/etc/systemd/system/':
|
||||||
@@ -82,7 +82,7 @@ Esegui su Debian/Ubuntu:
|
|||||||
sudo apt install build-essential python3-dev libssl-dev libffi-dev python3-pip python3-venv
|
sudo apt install build-essential python3-dev libssl-dev libffi-dev python3-pip python3-venv
|
||||||
|
|
||||||
Crea e attiva un ambiente virtuale (FONDAMENTALE su Debian 12+):
|
Crea e attiva un ambiente virtuale (FONDAMENTALE su Debian 12+):
|
||||||
cd /opt/web-control-server
|
cd /opt/fleet-control-server
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
@@ -118,8 +118,8 @@ servizio, apri 'fleet-control.service' e assicurati che i percorsi
|
|||||||
puntino al tuo ambiente virtuale!
|
puntino al tuo ambiente virtuale!
|
||||||
|
|
||||||
Esempio:
|
Esempio:
|
||||||
WorkingDirectory=/opt/web-control-server
|
WorkingDirectory=/opt/fleet-control-server
|
||||||
ExecStart=/opt/web-control-server/venv/bin/gunicorn -k ...
|
ExecStart=/opt/fleet-control-server/venv/bin/gunicorn -k ...
|
||||||
|
|
||||||
Passaggi:
|
Passaggi:
|
||||||
1. Copia il file in systemd: sudo cp fleet-control.service /etc/systemd/system/
|
1. Copia il file in systemd: sudo cp fleet-control.service /etc/systemd/system/
|
||||||
|
|||||||
Reference in New Issue
Block a user