This commit is contained in:
parent
110b40a12a
commit
83f116321b
14
.drone.yml
14
.drone.yml
@ -38,11 +38,11 @@ steps:
|
|||||||
- export MYSQLUSER=car_des8_com
|
- export MYSQLUSER=car_des8_com
|
||||||
- export MYSQLPASSWD=eSfcCeDH76zC3MLG
|
- export MYSQLPASSWD=eSfcCeDH76zC3MLG
|
||||||
- export MYSQLPORT=3306
|
- export MYSQLPORT=3306
|
||||||
- export GIT_NAME=$GIT_NAME
|
- export GIT_NAME=GIT_NAME
|
||||||
- export GIT_PASSWD=$GIT_PASSWD
|
- export GIT_PASSWD=$GIT_PASSWD
|
||||||
- echo $GIT_NAME
|
- echo GIT_NAME
|
||||||
- env
|
- env
|
||||||
- cd $WEBROOT
|
- cd /www/wwwroot/car.des8.com
|
||||||
- git remote rm origin
|
- git remote rm origin
|
||||||
- git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git
|
- git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- export WEBROOT=$WEBROOT
|
- export WEBROOT=$WEBROOT
|
||||||
- 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
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo "设置Env配置"
|
- echo "设置Env配置"
|
||||||
- echo $WEBROOT
|
- echo $WEBROOT
|
||||||
- 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
|
||||||
@ -76,7 +76,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo "更改文件权限"
|
- echo "更改文件权限"
|
||||||
- rm -rf ./public/.user.ini
|
- rm -rf ./public/.user.ini
|
||||||
- cd $WEBROOT
|
- 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
|
||||||
@ -84,7 +84,7 @@ steps:
|
|||||||
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user