mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
update
This commit is contained in:
parent
61846f75a1
commit
1ea5c22b4d
2 changed files with 8 additions and 2 deletions
|
@ -32,7 +32,13 @@ 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');
|
||||
|
|
Loading…
Reference in a new issue