Files
web/README.md
2026-03-17 01:26:33 +08:00

996 B
Raw Blame History

多站点管理后台

前后端分离的多站点管理系统。

项目结构

yh_web/
├── admin/     # 管理后台前端 (Vue 3 + Element Plus) - 端口 3000
├── web/       # 前台页面 (Vue 3) - 端口 3001
├── server/    # 后端 API (Go + Gin) - 端口 8080
└── README.md

快速启动

1. 启动后端

cd server
go mod tidy
go run main.go

2. 启动管理后台

cd admin
npm install
npm run dev

3. 启动前台

cd web
npm install
npm run dev

访问地址

线上部署(项目根目录:~/project/yh_web

线上路径为 yxd@server1:~/project/yh_web(即 /home/yxd/project/yh_web)。

  • 拉取代码并重启cd ~/project/yh_web && ./pull-and-restart.sh
  • 仅重启服务cd ~/project/yh_web && ./restart.sh
  • 对外域名:https://yuheng.yuxindazhineng.com