From c2b4210241545bb17d5a2ee8be582b40e4bcfa85 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 8 Apr 2021 08:42:23 +1000 Subject: [PATCH] Suppress optimize on shared hosting --- app/Http/Controllers/SetupController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index 06c973cc1a..9d975aaebc 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -147,7 +147,9 @@ class SetupController extends Controller DB::purge('db-ninja-01'); /* Run migrations */ - Artisan::call('optimize'); + if(!config('ninja.disable_auto_update')) + Artisan::call('optimize'); + Artisan::call('migrate', ['--force' => true]); Artisan::call('db:seed', ['--force' => true]);