upd: config.modules|api.module.dev (added auto-release (git pull) with url trigger)

This commit is contained in:
xdrm-brackets 2017-12-07 16:34:36 +01:00
parent 7f4b481bb6
commit 29cb835400
2 changed files with 15 additions and 0 deletions

View File

@ -25,4 +25,12 @@ class dev{
return ['notice' => 'reload the website NOW !!']; return ['notice' => 'reload the website NOW !!'];
} }
public function GET_release($argv){
extract($argv);
\chdir(__ROOT__);
return [ 'stdout' => \shell_exec("git pull origin master") ];
}
} }

View File

@ -90,6 +90,13 @@
"permissions": [], "permissions": [],
"parameters": {}, "parameters": {},
"output": {} "output": {}
},
"GET release": {
"description": "Auto release git repo",
"permissions": [],
"parameters": {},
"output": {}
} }
}, },