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