# v3-admin-vite
**Repository Path**: leeatao/v3-admin-vite
## Basic Information
- **Project Name**: v3-admin-vite
- **Description**: ☀️ A vue3 admin template | vue3 admin/element plus admin/vite admin/vue3 template/vue3 后台/vue3 模板/vue3 后台管理系统
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://un-pany.github.io/v3-admin-vite/
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 288
- **Created**: 2025-07-01
- **Last Updated**: 2025-07-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
KMORE IBD项目开发部署记录
## Git 提交规范参考
- `feat` 增加新的业务功能
- `fix` 修复业务问题/BUG
- `perf` 优化性能
- `style` 更改代码风格, 不影响运行结果
- `refactor` 重构代码
- `revert` 撤销更改
- `test` 测试相关, 不涉及业务代码的更改
- `docs` 文档和注释相关
- `chore` 更新依赖/修改脚手架配置等琐事
- `workflow` 工作流改进
- `ci` 持续集成相关
- `types` 类型定义文件更改
- `wip` 开发中
## 部署方式
### 创建submodule
为了后续拉取仓库方便,先在远程仓库创建一个repo,专门用来作为deploy使用,并将它设为本项目的子仓库
```bash
git add submodule 'https://xxxx.xxxx.git'
```
如果报错,一般就是因为空仓库之类,可以考虑先随便建一个readme.md。
### 修改vite设置
```js
// vite.config.ts中找到build,然后在下面添加一个输出项
build:{
//...
outDir:'./[repo_name]/dist' // 输出文件夹路径 //这里用的kmore-ibd-deploy
// outDir为相对目录,前面的./不要忘记,另外,根据创建的repo名字,也就是本地文件夹名字来创建路径
}
```
### 创建nginx文件夹及文件
在子模块中创建`nginx`文件夹,与`dist`平级。再在`nginx`中创建`conf.d`文件夹,在其中创建`vue.conf`文件(文件名随意)。
```conf
## vue.conf
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
```
### 宿主机中创建docker
```bash
docker run -d --name nginx-ibd -p 3000:80 -v /docker_volume/kmore-ibd-deploy/nginx/conf.d:/etc/nginx/conf.d -v /docker_volume/kmore-ibd-deploy/dist:/usr/share/nginx/html nginx
```