fix(deploy): run seed + media:generate-variants after migrate

staging R2 was empty — migrate ran but no seeder, so ContentSeeder
never placed fixtures on the configured disk (r2) and media:generate-variants
had nothing for image paths. Staging deploy now seeds content.
This commit is contained in:
2026-08-06 10:55:58 -03:00
parent c04790ee1f
commit 10a1f0dc7c

View File

@@ -14,7 +14,11 @@ services:
restart: "no" restart: "no"
env_file: env_file:
- .env - .env
command: ["php", "artisan", "migrate", "--force", "--no-interaction"] command: >
sh -c
"php artisan migrate --force --no-interaction
&& php artisan db:seed --class=ContentSeeder --force --no-interaction
&& php artisan media:generate-variants --force"
networks: networks:
- dokploy-network - dokploy-network