This commit is contained in:
Louis Mazin 2026-09-13 19:05:48 +02:00
parent 5a56f5383d
commit 454dca8c9c

View File

@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash
set -e
cd /home/container
@ -8,9 +8,25 @@ echo "======================================"
echo " Boulangerie Web"
echo "======================================"
echo "Python : $(python3 --version)"
echo "Node : $(node --version)"
echo "npm : $(npm --version)"
# --------------------------------------
# Mise à jour du projet
# --------------------------------------
if [ ! -d ".git" ]; then
echo "Dépôt Git absent → clonage..."
git clone https://gitea.louismazin.ovh/LouisMazin/Boulangerie_Website.git /tmp/boulangerie
cp -a /tmp/boulangerie/. /home/container/
rm -rf /tmp/boulangerie
else
echo "Mise à jour du dépôt Git..."
git fetch origin
git reset --hard origin/main
fi
echo "Git : $(git rev-parse --short HEAD)"
# --------------------------------------
# Backend