Téléverser les fichiers vers "php"

This commit is contained in:
LiittleCookie 2025-09-02 19:10:39 +00:00
parent 99bd915636
commit b9d96a0968

20
php/entrypoint.sh Normal file
View File

@ -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