mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
Update Domain.php
This commit is contained in:
parent
eedc2e201a
commit
aad5b8b77a
1 changed files with 4 additions and 3 deletions
|
@ -75,8 +75,7 @@ class Domain extends Model
|
|||
$model->domain_public = $model->domain_root.'/public_html';
|
||||
$model->home_root = '/home/'.$findHostingSubscription->user;
|
||||
}
|
||||
|
||||
$model->save();
|
||||
$model->saveQuietly();
|
||||
|
||||
$model->configureVirtualHost(true);
|
||||
|
||||
|
@ -86,6 +85,8 @@ class Domain extends Model
|
|||
|
||||
static::saved(function ($model) {
|
||||
|
||||
$model->configureVirtualHost(true);
|
||||
|
||||
$apacheBuild = new ApacheBuild();
|
||||
$apacheBuild->build();
|
||||
|
||||
|
@ -146,7 +147,7 @@ class Domain extends Model
|
|||
|
||||
if ($this->is_installed_default_app_template == null) {
|
||||
$this->is_installed_default_app_template = 1;
|
||||
$this->save();
|
||||
$this->saveQuietly();
|
||||
if ($this->server_application_type == 'apache_php') {
|
||||
if (!is_file($this->domain_public . '/index.php')) {
|
||||
$indexContent = view('actions.samples.apache.php.app-php-sample')->render();
|
||||
|
|
Loading…
Reference in a new issue