14 lines
368 B
PHP
14 lines
368 B
PHP
<?php
|
|
|
|
namespace app\common\controller;
|
|
|
|
use think\Log;
|
|
|
|
class GitWebHookController extends BaseLikeAdminController
|
|
{
|
|
public function pullDevBranch()
|
|
{
|
|
system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code);
|
|
\think\facade\Log::info(['git pull dev branch result', $result_code]);
|
|
}
|
|
} |