Script pour le déploiement

This commit is contained in:
Colin Maudry
2025-09-24 09:50:36 +02:00
parent e41dbe772c
commit a41b70d5af
2 changed files with 17 additions and 2 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!bin/bash
# Utilisé principalement avec les Github Actions
# cf. .github/workflows/deploy.yaml
appname = "$1"
systemctl stop $appname
cd /var/www/$appname
git pull
source .venv/bin/activate
pip install .
deactivate
chown -R $appname:www-data *
systemctl start $appname