lumenInit/resources/docker/start-fpm.sh

11 lines
189 B
Bash
Raw Normal View History

2019-09-26 12:00:05 +00:00
cd /app
until nc -z -v -w30 mariadb 3306
do
echo "Waiting for database connection..."
# wait for 5 seconds before check again
sleep 5
done
sleep 5
php artisan migrate --force
php-fpm