Prise en charge de la photo de profil
All checks were successful
Organisation/sirh/pipeline/head This commit looks good
All checks were successful
Organisation/sirh/pipeline/head This commit looks good
This commit is contained in:
18
.gitignore
vendored
18
.gitignore
vendored
@@ -1,18 +1,6 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
db.sqlite3
|
|
||||||
venv/*
|
|
||||||
media/*
|
|
||||||
*.pyc
|
|
||||||
__pycache__/
|
|
||||||
=======
|
|
||||||
# db.sqlite3
|
|
||||||
# venv/*
|
|
||||||
# media/*
|
|
||||||
|
|
||||||
__pycache__/
|
|
||||||
*.pyc
|
|
||||||
|
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
venv/
|
venv/
|
||||||
|
media/
|
||||||
|
staticfiles/
|
||||||
.env
|
.env
|
||||||
>>>>>>> c28b14f (clean: remove pycache from tracking)
|
migrations/
|
||||||
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user