added new env variables
This commit is contained in:
parent
228a6c51ca
commit
6f66dd0d36
@ -12,6 +12,7 @@ use App\Models\Common\Company;
|
|||||||
use App\Models\Common\Contact;
|
use App\Models\Common\Contact;
|
||||||
use App\Models\Common\EmailTemplate;
|
use App\Models\Common\EmailTemplate;
|
||||||
use App\Models\Common\Report;
|
use App\Models\Common\Report;
|
||||||
|
use App\Utilities\Installer;
|
||||||
use App\Utilities\Overrider;
|
use App\Utilities\Overrider;
|
||||||
use Artisan;
|
use Artisan;
|
||||||
use DB;
|
use DB;
|
||||||
@ -58,6 +59,8 @@ class Version200 extends Listener
|
|||||||
$this->updatePermissions();
|
$this->updatePermissions();
|
||||||
|
|
||||||
$this->deleteOldFiles();
|
$this->deleteOldFiles();
|
||||||
|
|
||||||
|
$this->updateEnv();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateDatabase()
|
public function updateDatabase()
|
||||||
@ -1105,6 +1108,15 @@ class Version200 extends Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateEnv()
|
||||||
|
{
|
||||||
|
Installer::updateEnv([
|
||||||
|
'QUEUE_CONNECTION' => 'sync',
|
||||||
|
'LOG_CHANNEL' => 'stack',
|
||||||
|
'FIREWALL_ENABLED' => 'true',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
protected function create($model, $data)
|
protected function create($model, $data)
|
||||||
{
|
{
|
||||||
$model->timestamps = false;
|
$model->timestamps = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user