Fix: force db seeding
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2025-04-03 23:52:06 +02:00
parent e5c2ba33ef
commit 91537b67f2
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ fi
if [ $1 == "app" ]; then
# --------------------------- ensure appkey is set ----------------------------
wait_for_db
php -r '$connection = new PDO("mysql:host='$DB_HOST';dbname='$DB_DATABASE'", "'$DB_USERNAME'", "'$DB_PASSWORD'"); $connection->query("DESCRIBE migrations");' > /dev/null || ( php artisan migrate --seed --force && php artisan db:seed )
php -r '$connection = new PDO("mysql:host='$DB_HOST';dbname='$DB_DATABASE'", "'$DB_USERNAME'", "'$DB_PASSWORD'"); $connection->query("DESCRIBE migrations");' > /dev/null || ( php artisan migrate --seed --force && php artisan db:seed --force )
su www-data -c 'php artisan migrate --force'
php artisan scout:sync-index-settings
php-fpm -F -R -O