This commit is contained in:
meng 2023-02-16 03:26:11 +08:00
parent c477860168
commit f5f41da866
10 changed files with 344 additions and 809 deletions

54
.drone.yml Normal file
View File

@ -0,0 +1,54 @@
---
kind: pipeline
type: ssh
name: "自动部署"
server:
host: 175.178.113.105
user: root
ssh_key:
from_secret: SSH_KEY
clone:
disable: true
steps:
- name: "设置远端Git"
environment:
GIT_NAME:
from_secret: GIT_NAME
GIT_PASSWD:
from_secret: GIT_PASSWD
commands:
- echo "Git 设置"
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
- git remote rm origin
- git remote add origin ssh://git@home.des8.com:8022/heibai2006/wpfw_ewei_shopv2.git
- name: "git更新代码"
commands:
- echo "git更新代码"
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
- pwd && ls -l
- git pull origin main
- name: "复制api文件"
commands:
- echo "复制api文件到app目录"
- printenv
- pwd
- /bin/cp -f /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2/ewei_shopv2_api.php /www/wwwroot/we.cnp5.cn/ewei_shopv2_api.php
- /bin/cp -f /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2/api.php /www/wwwroot/we.cnp5.cn/api.php
- name: "更改文件权限"
commands:
- echo "更改文件权限"
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
- chown -R www:www ./
- pwd && ls -l
trigger:
branch:
- main
event:
- push
- pull_request

1
.gitignore vendored
View File

@ -1 +1,2 @@
/data
__MACOSX

View File

@ -199,7 +199,7 @@ class Index_EweiShopV2Page extends AppMobilePage
// print_r($row['goods']);exit;
//print_r($row['goods']);exit;
$statuscss = "text-cancel";
$nextstatus='';

File diff suppressed because it is too large Load Diff