This commit is contained in:
Bozhidar 2024-05-10 16:23:53 +03:00
parent 61846f75a1
commit 1ea5c22b4d
2 changed files with 8 additions and 2 deletions

View file

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

View file

@ -39,7 +39,7 @@ class Settings extends BaseSettings
// Restart supervisor
shell_exec('service supervisor restart');
// Make master domain virtual host
$masterDomain = new MasterDomain();