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 set -e
cd /home/container cd /home/container
@ -8,9 +8,25 @@ echo "======================================"
echo " Boulangerie Web" echo " Boulangerie Web"
echo "======================================" echo "======================================"
echo "Python : $(python3 --version)" # --------------------------------------
echo "Node : $(node --version)" # Mise à jour du projet
echo "npm : $(npm --version)" # --------------------------------------
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 # Backend