upd: config.modules|api.module.dev (added auto-release (git pull) with url trigger)
This commit is contained in:
parent
7f4b481bb6
commit
29cb835400
|
@ -25,4 +25,12 @@ class dev{
|
|||
return ['notice' => 'reload the website NOW !!'];
|
||||
}
|
||||
|
||||
public function GET_release($argv){
|
||||
extract($argv);
|
||||
|
||||
\chdir(__ROOT__);
|
||||
|
||||
return [ 'stdout' => \shell_exec("git pull origin master") ];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -90,6 +90,13 @@
|
|||
"permissions": [],
|
||||
"parameters": {},
|
||||
"output": {}
|
||||
},
|
||||
|
||||
"GET release": {
|
||||
"description": "Auto release git repo",
|
||||
"permissions": [],
|
||||
"parameters": {},
|
||||
"output": {}
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue