Merge pull request #21 from manoel-freitas/fix/seed-resilient

fix(deploy): array command form + resilient seed
This commit is contained in:
2026-08-06 11:27:48 -03:00
committed by GitHub

View File

@@ -14,12 +14,7 @@ services:
restart: "no" restart: "no"
env_file: env_file:
- .env - .env
command: > command: ["sh", "-c", "php artisan migrate --force --no-interaction && php artisan db:seed --class=ContentSeeder --force; php artisan media:generate-variants --force; true"]
sh -c
"php artisan migrate --force --no-interaction
&& (php artisan db:seed --class=ContentSeeder --force --no-interaction 2>&1
&& php artisan media:generate-variants --force 2>&1) || true
&& echo 'migrate+seed done'"
networks: networks:
- dokploy-network - dokploy-network