finance-pay/app/common/controller/GitWebHookController.php

14 lines
368 B
PHP
Raw Normal View History

2023-11-20 13:40:38 +08:00
<?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);
2023-11-20 13:41:15 +08:00
\think\facade\Log::info(['git pull dev branch result', $result_code]);
2023-11-20 13:40:38 +08:00
}
}