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: