up service doc
This commit is contained in:
parent
6df72c46b8
commit
4951eeb1c8
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue