From 5cb572b6a589fea09df96697034cbfda951d86c7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 12 Dec 2023 11:54:10 +0100 Subject: [PATCH] fix: run init command after production seeder --- database/seeders/ProductionSeeder.php | 2 ++ .../prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/init-script | 0 2 files changed, 2 insertions(+) delete mode 100644 docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/init-script diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.php index aaf07bb7a..8e53c6e7a 100644 --- a/database/seeders/ProductionSeeder.php +++ b/database/seeders/ProductionSeeder.php @@ -14,6 +14,7 @@ use App\Models\Team; use App\Models\User; use Illuminate\Database\Seeder; +use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Process; use Illuminate\Support\Facades\Storage; @@ -144,5 +145,6 @@ public function run(): void } catch (\Throwable $e) { echo "Error: {$e->getMessage()}\n"; } + Artisan::call('app:init'); } } diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/init-script b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/init-script deleted file mode 100644 index e69de29bb..000000000