Téléverser les fichiers vers "php"
This commit is contained in:
parent
99bd915636
commit
b9d96a0968
20
php/entrypoint.sh
Normal file
20
php/entrypoint.sh
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user