Prise en charge de la photo de profil

This commit is contained in:
2026-05-06 11:19:30 +00:00
parent d464d19981
commit c35cfc50d4
2 changed files with 12 additions and 2 deletions

7
.gitignore vendored
View File

@@ -1,4 +1,5 @@
<<<<<<< HEAD <<<<<<< HEAD
<<<<<<< HEAD
__pycache__/ __pycache__/
*.pyc *.pyc
======= =======
@@ -17,7 +18,11 @@ __pycache__/
__pycache__/ __pycache__/
*.pyc *.pyc
=======
>>>>>>> 34a261a (Prise en charge de la photo de profil)
db.sqlite3 db.sqlite3
venv/ venv/
media/
staticfiles/
.env .env
>>>>>>> c28b14f (clean: remove pycache from tracking) migrations/

7
Jenkinsfile vendored
View File

@@ -29,12 +29,17 @@ pipeline
sh ''' sh '''
cd /var/www/sirh cd /var/www/sirh
echo $SUDO_PASSWORD | sudo -S chown -R jenkins:jenkins /var/www/sirh echo $SUDO_PASSWORD | sudo -S chown -R jenkins:jenkins /var/www/sirh
git pull origin main
git fetch origin main
git reset --hard origin/main
python3 -m venv venv python3 -m venv venv
. venv/bin/activate . venv/bin/activate
pip install -r requirements.txt pip install -r requirements.txt
python manage.py makemigrations python manage.py makemigrations
python manage.py migrate python manage.py migrate
echo $SUDO_PASSWORD | sudo -S chown -R www-data:www-data /var/www/sirh echo $SUDO_PASSWORD | sudo -S chown -R www-data:www-data /var/www/sirh
echo "Deploiement reussi" echo "Deploiement reussi"
echo $SUDO_PASSWORD | sudo -S supervisorctl restart sirh echo $SUDO_PASSWORD | sudo -S supervisorctl restart sirh