diff --git a/.drone.yml b/.drone.yml index 9dd15f9..2362708 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/web/app/Console/Commands/RunRepair.php b/web/app/Console/Commands/RunRepair.php index a0b5087..e63a83b 100644 --- a/web/app/Console/Commands/RunRepair.php +++ b/web/app/Console/Commands/RunRepair.php @@ -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');