Suppress optimize on shared hosting
This commit is contained in:
parent
4c56d7328c
commit
c2b4210241
1 changed files with 3 additions and 1 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue