mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 15:10:25 +00:00
update
This commit is contained in:
parent
c15173af24
commit
6dc1bad756
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue