1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 08:29:36 +01:00

fix(infra): no-db Profil robuster machen und Stub-Beans ergänzen

DatabaseProfileInitializer setzt Autoconfigure-Exclusions programmatisch,
da application-no-db.yml bei spätem Profil-Aktivierung nicht geladen wird.
SpringUnitOfWork mit @Profile("!no-db") ausgeschlossen. Stub-Beans für
BatchNumberGenerator, BatchRepository, ProductionOrderRepository,
StockMovementRepository und UnitOfWork ergänzt. generate-openapi.sh
nutzt korrektes -Dspring-boot.run.profiles=no-db.
This commit is contained in:
Sebastian Frick 2026-02-25 21:43:53 +01:00
parent 72d59b4948
commit 0e58cbfacf
8 changed files with 258 additions and 3 deletions

View file

@ -34,7 +34,7 @@ if curl -sf "$API_DOCS_URL" -o /dev/null 2>/dev/null; then
echo "✓ Backend läuft bereits"
else
echo "→ Backend wird gestartet..."
mvn -f "$BACKEND_DIR/pom.xml" spring-boot:run -Pno-db -q &
mvn -f "$BACKEND_DIR/pom.xml" spring-boot:run -Dspring-boot.run.profiles=no-db -q &
BACKEND_PID=$!
wait_for_backend
fi