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

This commit is contained in:
孟凡懂 2022-06-29 12:49:57 +08:00
parent 8b13623e1f
commit a0dbd35f2d

View File

@ -20,38 +20,31 @@ steps:
GIT_PASSWD: GIT_PASSWD:
from_secret: GIT_PASSWD from_secret: GIT_PASSWD
commands: commands:
- export WEBROOT=/www/wwwroot/car.des8.com - cd /www/wwwroot/car.des8.com
- export MYSQLHOST=127.0.0.1
- export MYSQLNAME=car_des8_com
- export MYSQLUSER=car_des8_com
- export MYSQLPASSWD=eSfcCeDH76zC3MLG
- export MYSQLPORT=3306
- echo $WEBROOT
- 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
- name: "Clone 代码" - name: "Clone 代码"
commands: commands:
- echo "Clone 代码" - echo "Clone 代码"
- cd $WEBROOT - cd /www/wwwroot/car.des8.com
- pwd && ls -l - pwd && ls -l
- git pull origin master - git pull origin master
- name: "设置Env配置" - name: "设置Env配置"
commands: commands:
- echo "设置Env配置" - echo "设置Env配置"
- echo $WEBROOT - echo /www/wwwroot/car.des8.com
- cd $WEBROOT - cd /www/wwwroot/car.des8.com
- echo "[app]" > .env - echo "[app]" > .env
- echo "debug = false" >> .env - echo "debug = false" >> .env
- echo "trace = false" >> .env - echo "trace = false" >> .env
- echo "[database]" >> .env - echo "[database]" >> .env
- echo "hostname = $MYSQLHOST" >> .env - echo "hostname = 127.0.0.1" >> .env
- echo "database = $MYSQLNAME" >> .env - echo "database = car_des8_com" >> .env
- echo "username = $MYSQLUSER" >> .env - echo "username = car_des8_com" >> .env
- echo "password = $MYSQLPASSWD" >> .env - echo "password = eSfcCeDH76zC3MLG" >> .env
- echo "hostport = $MYSQLPORT" >> .env - echo "hostport = 3306" >> .env
- echo "prefix = car_" >> .env - echo "prefix = car_" >> .env
- echo "debug = false" >> .env - echo "debug = false" >> .env
- cat .env - cat .env
@ -59,16 +52,16 @@ steps:
- name: "更改文件权限" - name: "更改文件权限"
commands: commands:
- echo "更改文件权限" - echo "更改文件权限"
- cd $WEBROOT - cd /www/wwwroot/car.des8.com
- rm -rf ./public/.user.ini - rm -rf ./public/.user.ini
- chown -R www:www ./ - chown -R www:www ./
- echo "open_basedir=$WEBROOT/:/tmp/" > ./public/.user.ini - echo "open_basedir=/www/wwwroot/car.des8.com/:/tmp/" > ./public/.user.ini
- pwd && ls -l - pwd && ls -l
- name: "清除缓存" - name: "清除缓存"
commands: commands:
- echo "清除缓存" - echo "清除缓存"
- cd $WEBROOT/runtime - cd /www/wwwroot/car.des8.com/runtime
- rm -rf ./cache - rm -rf ./cache
- rm -rf ./temp - rm -rf ./temp
- pwd && ls -l - pwd && ls -l