Fix: mismatch
This commit is contained in:
@@ -80,10 +80,10 @@ pip install -r requirements.txt
|
|||||||
#### 4. Running as a Service
|
#### 4. Running as a Service
|
||||||
To run the server continuously in production using Gunicorn:
|
To run the server continuously in production using Gunicorn:
|
||||||
```bash
|
```bash
|
||||||
sudo cp fleet-control.service /etc/systemd/system/
|
sudo cp fleet-console.service /etc/systemd/system/
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable fleet-control
|
sudo systemctl enable fleet-console
|
||||||
sudo systemctl start fleet-control
|
sudo systemctl start fleet-console
|
||||||
```
|
```
|
||||||
*(Ensure the `.service` file points to the `gunicorn` executable inside your `venv`)*.
|
*(Ensure the `.service` file points to the `gunicorn` executable inside your `venv`)*.
|
||||||
|
|
||||||
@@ -165,10 +165,10 @@ pip install -r requirements.txt
|
|||||||
#### 4. Esecuzione come Servizio (systemd)
|
#### 4. Esecuzione come Servizio (systemd)
|
||||||
Per eseguire il server in produzione in modo continuo e stabile con Gunicorn:
|
Per eseguire il server in produzione in modo continuo e stabile con Gunicorn:
|
||||||
```bash
|
```bash
|
||||||
sudo cp fleet-control.service /etc/systemd/system/
|
sudo cp fleet-console.service /etc/systemd/system/
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable fleet-control
|
sudo systemctl enable fleet-console
|
||||||
sudo systemctl start fleet-control
|
sudo systemctl start fleet-console
|
||||||
```
|
```
|
||||||
*(Assicurati che il file `.service` punti all'eseguibile `gunicorn` situato all'interno della cartella `venv`).*
|
*(Assicurati che il file `.service` punti all'eseguibile `gunicorn` situato all'interno della cartella `venv`).*
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -61,7 +61,7 @@ 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/':
|
||||||
sudo cp fleet-control.service /etc/systemd/system/
|
sudo cp fleet-console.service /etc/systemd/system/
|
||||||
2. Reload systemd: sudo systemctl daemon-reload
|
2. Reload systemd: sudo systemctl daemon-reload
|
||||||
3. Enable on boot: sudo systemctl enable fleet-console
|
3. Enable on boot: sudo systemctl enable fleet-console
|
||||||
4. Start service: sudo systemctl start fleet-console
|
4. Start service: sudo systemctl start fleet-console
|
||||||
@@ -122,7 +122,7 @@ WorkingDirectory=/opt/fleet-control-server
|
|||||||
ExecStart=/opt/fleet-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-console.service /etc/systemd/system/
|
||||||
2. Ricarica la configurazione: sudo systemctl daemon-reload
|
2. Ricarica la configurazione: sudo systemctl daemon-reload
|
||||||
3. Abilita all'avvio: sudo systemctl enable fleet-console
|
3. Abilita all'avvio: sudo systemctl enable fleet-console
|
||||||
4. Avvia il servizio: sudo systemctl start fleet-console
|
4. Avvia il servizio: sudo systemctl start fleet-console
|
||||||
|
|||||||
Reference in New Issue
Block a user