diff --git a/deploy/docker-entrypoint.sh b/deploy/docker-entrypoint.sh index 920573e..e0347d0 100644 --- a/deploy/docker-entrypoint.sh +++ b/deploy/docker-entrypoint.sh @@ -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