This commit is contained in:
Bozhidar 2024-05-07 14:27:50 +03:00
parent c15173af24
commit 6dc1bad756
2 changed files with 6 additions and 5 deletions

View File

@ -57,8 +57,11 @@ steps:
- name: codecov
image: robertstettner/drone-codecov
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
settings:
token: ${CODECOV_TOKEN}
token: $CODECOV_TOKEN
files: /usr/local/phyre/web/clover.xml
---
kind: pipeline

View File

@ -31,10 +31,8 @@ class RunRepair extends Command
public function handle()
{
// Check supervisor config file
if (!is_file('/etc/supervisor/conf.d/phyre.conf')) {
file_put_contents('/etc/supervisor/conf.d/phyre.conf', file_get_contents(base_path('app/Supervisor/configs/phyre-worker.conf')));
}
// Overwrite supervisor config file
file_put_contents('/etc/supervisor/conf.d/phyre.conf', file_get_contents(base_path('app/Supervisor/configs/phyre-worker.conf')));
// Restart supervisor
shell_exec('service supervisor restart');