2025-10-21
服务器
siteng
4
1.克隆平台代码
cd /www/siteng-2025

git clone https://gitee.com/siteng-xxx/siteng-platform-hyperf3.1.git
mv siteng-platform-hyperf3.1/ siteng2025-cdwh-zh-hyperf3.1

git clone https://gitee.com/siteng-xxx/siteng-platform-vue3.5.git
mv siteng-platform-vue3.5/ siteng2025-cdwh-zh-vue3.5
2.克隆项目代码
cd /www/siteng-2025/siteng2025-cdwh-zh-hyperf3.1/app

# 通用项目
git clone https://gitee.com/siteng-xxx/siteng-demo-hyperf3.1.git
mv siteng-demo-hyperf3.1/ GyXuanFang

# 在gitee创建对应仓库,并替换本地地址
git remote set-url origin xxx

cd /www/siteng-2025/siteng2025-cdwh-zh-vue3.5/src\app

# 通用项目
git clone https://gitee.com/siteng-xxx/siteng-demo-vue3.5.git
mv siteng-demo-vue3.5/ gyxuanfang

# 在gitee创建对应仓库,并替换本地地址
git remote set-url origin xxx

3.后端代码本地修改

1.替换命名空间:App\Demo-> App\GyZhengShou
2.修改 RouteCode:demo -> gyzs;Demo -> GyZhengShou
3.执行命令 InitApplicationCommand:替换成新应用名称

4.前端代码本地修改

1.替换 api 目录接口地址:url: '/demo/ -> url: '/gyzs/
2.替换 svgs 目录图标名称:demo-auth.svg -> gyzs-auth.svg
3.替换 views 目录接口地址:@/app/demo/ -> @/app/gyzhengshou/
4.替换 views 目录 buttonPrefix:btnDemo -> btnGyZhengSh
标签:

siteng