update git webhook
This commit is contained in:
parent
9d4e708b90
commit
ac6f81cbe2
|
@ -1,11 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace app\common\controller;
|
namespace app\api\controller;
|
||||||
|
|
||||||
use think\Log;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
|
|
||||||
class GitWebHookController extends BaseLikeAdminController
|
class GitWebHookController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
public array $notNeedLogin = ['pullDevBranch'];
|
||||||
public function pullDevBranch()
|
public function pullDevBranch()
|
||||||
{
|
{
|
||||||
system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code);
|
system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code);
|
Loading…
Reference in New Issue