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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user