git pull
This commit is contained in:
parent
5a56f5383d
commit
454dca8c9c
24
start.sh
24
start.sh
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user