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