84f8ff3c45
- 8 batchar om ~27 recept = ~216 mål - Budgetguard med pause vid 90 % - DB-dedup mot recipes.titleSv + session-dedup - Seed verified till staging DB (recipes, recipeIngredients, recipeSteps) - Stickprov ~15 % per batch med flaggning - scale-batch.sh wrapper för Node IPv4-workaround - Lade till ./client export i @app/database - Lade till dotenv i @app/recipe-generation deps Relaterat till docs/32-receptkatalog-buildout.md
11 lines
442 B
Bash
Executable File
11 lines
442 B
Bash
Executable File
#!/bin/bash
|
||
# scale-batch.sh – wrapper som sätter IPv4-preferens (workaround för Node fetch-häng på WSL+IPv6)
|
||
set -e
|
||
cd "$(dirname "$0")/.."
|
||
export NODE_OPTIONS="${NODE_OPTIONS:---dns-result-order=ipv4first}"
|
||
export AAMOS_MODE=gemini
|
||
export GEMINI_MODEL=gemini-2.5-flash
|
||
export GEMINI_TIMEOUT_MS=180000
|
||
# GEMINI_API_KEY och GEMINI_DAILY_BUDGET_USD måste sättas utanför
|
||
pnpm tsx packages/recipe-generation/scripts/scale-batch.ts "$@"
|