feat: add init seeder

This commit is contained in:
Marian
2025-11-27 09:20:47 +00:00
parent e598cc475c
commit 741655c548
+4
View File
@@ -77,6 +77,10 @@ if [ -f "$APP_DIR/artisan" ]; then
log "Running database migrations"
( cd "$APP_DIR" && php artisan migrate --force 2>&1 || log "migrations failed (continuing)" ) | head -10
# Run database seeders to create initial users
log "Running database seeders"
( cd "$APP_DIR" && php artisan db:seed --force 2>&1 || log "seeders failed (continuing)" ) | head -10
# Clear caches AFTER migrations (now cache table exists)
log "Clearing Laravel caches"
( cd "$APP_DIR" && php artisan config:clear 2>&1 || log "config:clear failed (continuing)" ) | head -5