up service doc

This commit is contained in:
Tykayn 2025-09-18 22:24:59 +02:00 committed by tykayn
parent 6df72c46b8
commit 4951eeb1c8
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,9 @@ Ce document explique comment installer et activer le service systemd pour faire
3. Assurez-vous que l'utilisateur www-data a les permissions nécessaires sur le répertoire du projet :
4. Rechargez la configuration de systemd :
```bash
# attention à bien corriger le password POSTGRES_PASSWORD=blahblah dans le fichier du service pour mettre celui de l'utilisateur postgres que vous aurez créé
sudo cp oedb-uwsgi.service /etc/systemd/system/
sudo chmod 644 /etc/systemd/system/oedb-uwsgi.service
sudo chown -R www-data:www-data /home/poule/encrypted/oedb-backend
sudo systemctl daemon-reload

View file

@ -7,8 +7,7 @@ User=www-data
Group=www-data
WorkingDirectory=/home/poule/encrypted/oedb-backend
Environment="DB_USER=cipherbliss"
Environment="POSTGRES_PASSWORD=tralalahihou"
ExecStartPre=/home/poule/encrypted/oedb-backend/setup_db.sh
Environment="POSTGRES_PASSWORD=blahblahblah"
ExecStart=/home/poule/encrypted/oedb-backend/venv/bin/uwsgi \
--http :8080 \
--wsgi-file backend.py \