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 MYSQLPASSWD=eSfcCeDH76zC3MLG
|
||||
- export MYSQLPORT=3306
|
||||
- export GIT_NAME=$GIT_NAME
|
||||
- export GIT_NAME=GIT_NAME
|
||||
- export GIT_PASSWD=$GIT_PASSWD
|
||||
- echo $GIT_NAME
|
||||
- echo GIT_NAME
|
||||
- env
|
||||
- cd $WEBROOT
|
||||
- cd /www/wwwroot/car.des8.com
|
||||
- git remote rm origin
|
||||
- git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git
|
||||
|
||||
@ -50,7 +50,7 @@ steps:
|
||||
commands:
|
||||
- export WEBROOT=$WEBROOT
|
||||
- echo "Clone 代码"
|
||||
- cd $WEBROOT
|
||||
- cd /www/wwwroot/car.des8.com
|
||||
- pwd && ls -l
|
||||
- git pull origin master
|
||||
|
||||
@ -58,7 +58,7 @@ steps:
|
||||
commands:
|
||||
- echo "设置Env配置"
|
||||
- echo $WEBROOT
|
||||
- cd $WEBROOT
|
||||
- cd /www/wwwroot/car.des8.com
|
||||
- echo "[app]" > .env
|
||||
- echo "debug = false" >> .env
|
||||
- echo "trace = false" >> .env
|
||||
@ -76,7 +76,7 @@ steps:
|
||||
commands:
|
||||
- echo "更改文件权限"
|
||||
- rm -rf ./public/.user.ini
|
||||
- cd $WEBROOT
|
||||
- cd /www/wwwroot/car.des8.com
|
||||
- chown -R www:www ./
|
||||
- echo "open_basedir=$WEBROOT/:/tmp/" > ./public/.user.ini
|
||||
- pwd && ls -l
|
||||
@ -84,7 +84,7 @@ steps:
|
||||
- name: "清除缓存"
|
||||
commands:
|
||||
- echo "清除缓存"
|
||||
- cd $WEBROOT/runtime
|
||||
- cd /www/wwwroot/car.des8.com/runtime
|
||||
- rm -rf ./cache
|
||||
- rm -rf ./temp
|
||||
- pwd && ls -l
|
||||
|
Loading…
Reference in New Issue
Block a user