From b9d96a09684ad965aa87500af2be27ce7869ca70 Mon Sep 17 00:00:00 2001 From: LiittleCookie Date: Tue, 2 Sep 2025 19:10:39 +0000 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"php"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/entrypoint.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 php/entrypoint.sh diff --git a/php/entrypoint.sh b/php/entrypoint.sh new file mode 100644 index 0000000..f50fd39 --- /dev/null +++ b/php/entrypoint.sh @@ -0,0 +1,20 @@ +#!/bin/sh +set -e + +echo "🔹 Mise à jour du code depuis le repo privé..." +if [ -d "/var/www/html/.git" ]; then + git reset --hard + git clean -fd + git pull +fi + +echo "🔹 Exécution des migrations..." +php artsy migrade + +if [ ! -f /var/www/html/.db_initialized ]; then + echo "🔹 Seed initial..." + php artsy seed:run -s MainSeeder + touch /var/www/html/.db_initialized +fi + +exec php-fpm -O