作者 李小龙

修改路径

... ... @@ -276,7 +276,7 @@ public function getRandInquiryText(Request $request){
* @return string
*/
public function pullCode(Request $request){
$command = "cd /www/wwwroot/globalso-v6-c-customer && ./pull_custom_code.sh";
$command = "cd /www/wwwroot/self_site && ./pull_custom_code.sh";
shell_exec($command);
return $this->success();
}
... ...
#!/bin/bash
#输出当前时间
date --date='0 days ago' "+%Y-%m-%d %H:%M:%S"
#web站点存放路径
webPath="/www/wwwroot/"
projectName="globalso-v6-c-customer"
projectName="self_site"
#git项目
gitHttp="http://47.244.231.31:8099/zhl/globalso-v6-c-customer.git"
... ... @@ -34,4 +34,4 @@ function getProjectCode()
# #Git获取项目代码,执行composer更新
getProjectCode
exit
\ No newline at end of file
exit
... ...