mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
61846f75a1
commit
1ea5c22b4d
2 changed files with 8 additions and 2 deletions
|
@ -32,8 +32,14 @@ class RunRepair extends Command
|
|||
{
|
||||
|
||||
// Overwrite supervisor config file
|
||||
file_put_contents('/etc/supervisor/conf.d/phyre.conf', file_get_contents(base_path('app/Supervisor/configs/phyre-worker.conf')));
|
||||
$workersCount = (int) setting('general.supervisor_workers_count');
|
||||
$supervisorConf = view('actions.samples.ubuntu.supervisor-conf', [
|
||||
'workersCount' => $workersCount
|
||||
])->render();
|
||||
|
||||
// Overwrite supervisor config file
|
||||
file_put_contents('/etc/supervisor/conf.d/phyre.conf', $supervisorConf);
|
||||
|
||||
// Restart supervisor
|
||||
shell_exec('service supervisor restart');
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class Settings extends BaseSettings
|
|||
|
||||
// Restart supervisor
|
||||
shell_exec('service supervisor restart');
|
||||
|
||||
|
||||
|
||||
// Make master domain virtual host
|
||||
$masterDomain = new MasterDomain();
|
||||
|
|
Loading…
Reference in a new issue