1323
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
孟凡懂 2022-06-29 12:46:23 +08:00
parent b200503f17
commit 7282f3d86b

View File

@ -20,7 +20,7 @@ steps:
GIT_PASSWD: GIT_PASSWD:
from_secret: GIT_PASSWD from_secret: GIT_PASSWD
commands: commands:
- export WEBROOT=/www/wwwroot/car.des8.com - export WEBROOT=$WEBROOT
- export MYSQLHOST=127.0.0.1 - export MYSQLHOST=127.0.0.1
- export MYSQLNAME=car_des8_com - export MYSQLNAME=car_des8_com
- export MYSQLUSER=car_des8_com - export MYSQLUSER=car_des8_com
@ -28,7 +28,7 @@ steps:
- export MYSQLPORT=3306 - export MYSQLPORT=3306
- echo $WEBROOT - echo $WEBROOT
- env - env
- cd /www/wwwroot/car.des8.com - cd $WEBROOT
- git remote rm origin - git remote rm origin
- git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/$GIT_NAME/car4s.git - git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/$GIT_NAME/car4s.git
@ -36,7 +36,7 @@ steps:
commands: commands:
- export WEBROOT=$WEBROOT - export WEBROOT=$WEBROOT
- echo "Clone 代码" - echo "Clone 代码"
- cd /www/wwwroot/car.des8.com - cd $WEBROOT
- pwd && ls -l - pwd && ls -l
- git pull origin master - git pull origin master
@ -44,7 +44,7 @@ steps:
commands: commands:
- echo "设置Env配置" - echo "设置Env配置"
- echo $WEBROOT - echo $WEBROOT
- cd /www/wwwroot/car.des8.com - cd $WEBROOT
- echo "[app]" > .env - echo "[app]" > .env
- echo "debug = false" >> .env - echo "debug = false" >> .env
- echo "trace = false" >> .env - echo "trace = false" >> .env
@ -61,8 +61,8 @@ steps:
- name: "更改文件权限" - name: "更改文件权限"
commands: commands:
- echo "更改文件权限" - echo "更改文件权限"
- cd $WEBROOT
- rm -rf ./public/.user.ini - rm -rf ./public/.user.ini
- cd /www/wwwroot/car.des8.com
- chown -R www:www ./ - chown -R www:www ./
- echo "open_basedir=$WEBROOT/:/tmp/" > ./public/.user.ini - echo "open_basedir=$WEBROOT/:/tmp/" > ./public/.user.ini
- pwd && ls -l - pwd && ls -l
@ -70,7 +70,7 @@ steps:
- name: "清除缓存" - name: "清除缓存"
commands: commands:
- echo "清除缓存" - echo "清除缓存"
- cd /www/wwwroot/car.des8.com/runtime - cd $WEBROOT/runtime
- rm -rf ./cache - rm -rf ./cache
- rm -rf ./temp - rm -rf ./temp
- pwd && ls -l - pwd && ls -l