From 70e979eae7c4b30ce254c810ca10c3189f77d3c3 Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Thu, 4 Jun 2026 14:26:00 +0200 Subject: [PATCH] Deploy: cloud-init seedet die DB (app:seed) nach den Migrationen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bisher liefen nur Migrationen → keine Daten, kein Admin-Login. app:seed ist idempotent (überspringt, wenn admin@vcard4reseller.de existiert), läuft nur auf app-1 (RUN_MIGRATIONS). Damit ist der dokumentierte Login admin/admin direkt nutzbar. Co-Authored-By: Claude Opus 4.8 --- deploy/terraform/cloud-init-app.yaml.tftpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/terraform/cloud-init-app.yaml.tftpl b/deploy/terraform/cloud-init-app.yaml.tftpl index ead08d4..4bd126f 100644 --- a/deploy/terraform/cloud-init-app.yaml.tftpl +++ b/deploy/terraform/cloud-init-app.yaml.tftpl @@ -59,6 +59,8 @@ write_files: sleep 20 if [ "$RUN_MIGRATIONS" = "true" ]; then $COMPOSE exec -T php php bin/console doctrine:migrations:migrate --no-interaction || true + # Erst-Befüllung (idempotent: überspringt, wenn admin@vcard4reseller.de existiert) + $COMPOSE exec -T php php bin/console app:seed || true fi $COMPOSE exec -T php php bin/console cache:clear || true runcmd: