21 lines
406 B
Bash

#!/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