docs: ajout service systemd et instructions de déploiement
- tableau-de-bord-pro.service : service Gunicorn pour www-data - README : section production avec systemctl edit --full Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17
tableau-de-bord-pro.service
Normal file
17
tableau-de-bord-pro.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Tableau de bord pro (Gunicorn)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/tableau-de-bord-pro
|
||||
Environment=SECRET_KEY=changeme-replace-with-a-strong-secret
|
||||
ExecStart=/var/www/tableau-de-bord-pro/.venv/bin/gunicorn \
|
||||
-c /var/www/tableau-de-bord-pro/gunicorn.conf.py \
|
||||
"app:create_app()"
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user