1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Suppress optimize on shared hosting

This commit is contained in:
David Bomba 2021-04-08 08:42:23 +10:00
parent 4c56d7328c
commit c2b4210241

View File

@ -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]);