<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] ## 修改php.ini ```bash vim /usr/local/php/etc/php.ini #搜索disable_function 將其中的 exec 和 shell_exec 刪除。 ``` ## webhook.php ```php //echo exec('whoami'); $gitroot = "/data/wwwroot/wjdd"; $password = '654321'; $request = file_get_contents('php://input'); //writeLog($request); $request = json_decode($request,true); if($request && $request['password'] == $password) { switch($request['hook_name']) { case 'push_hooks': $a=shell_exec("cd $gitroot ;sudo git fetch --all;sudo git reset --hard origin/master"); break; } } /** * @param str $msg */ function writeLog($msg){ date_default_timezone_set("Asia/Shanghai"); file_put_contents('log.txt',"\r\n".date("h:i:sa").': '.$msg,FILE_APPEND|LOCK_EX); } ``` ## 手動同步 直接覆蓋git上的代碼. 創建文件名為 tongbu.sh ``` #! /bin/bash cd /data/wwwroot/wjdd/ git fetch --all git reset --hard origin/master chown -R www:www . chmod 777 index.php ``` 使用 `source tongbu.sh`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看