dev-aid/deploy/oa/开发文档.md
2025-04-14 17:40:50 +08:00

66 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目结构
## jeecg-boot目录结构
![img](assets/img.png)
## jeecg-boot-starter目录结构
![img](assets/img_1.png)
# 华为云上前后端位置
- 前后端位置:/workspace/www/oa
- 后端地址:/workspace/www/oa/jeecg-boot
![img](assets/img_2.png)
**说明:**
- 配置文件
- Dockerfile:docker
- 启动服务jar包
- jeecg-system-start-3.7.4.jar
- 后端更新流程
- mvn clean install
- jeecg-boot/jeecg-module-system/jeecg-system-start/target/jeecg-system-start-3.7.4.jar 地址下拿取jar包上传华为云服务器
- 停服务docker stop jeecg-boot
- 删镜像docker rm jeecg-boot
- 跳转至启动目录cd /workspace/www/oa/jeecg-boot
- 构建不要忘记后面空格和点docker build -t jeecg-boot:1.0 .
- 启动docker run -it --name jeecg-boot -v /workspace/www/oa/jeecg-boot -p 8083:8080 --restart=always -d jeecg-boot:1.0
- 查看是否启动成功docker ps 命令看jeecg-boot是否正常
- 查看后端日志docker logs jeecg-boot | tail -n 100
- 前端地址:/workspace/www/oa/jeecg-boot-vue3
![img](assets/img_3.png)
**说明:**
- 相当于dist文件目录下部署时jeecg-boot-vue3+时间)改名后
dist在/workspace/www/oa改名为jeecg-boot-vue3即可
- 前端使用nginx启动
- nginx配置文件地址/workspace/nginx/conf.d
![img](assets/img_4.png)
- pnpm run build
- 前端打包后压缩dist文件夹上传压缩包至/workspace/www/oa目录下
- 重新命名jeecg-boot-vue3文件夹jeecg-boot-vue3+时间)
- 解压dist.zip
- cd /workspace/www/oa
- unzip dist.zip
- 重命名dist文件夹为jeecg-boot-vue3
- 重启nginxdocker restart nginx
- 数据库:
- datasource:
master:
url: jdbc:mysql://yinghuasoft.com:3305/jeecg-boot?useSSL=false&serverTimezone=UTC&useInformationSchema=true
username: root
password: Yinghua@ecs
driver-class-name: com.mysql.cj.jdbc.Driver
- redis
- redis:
database: 0
host: 123.249.108.39
port: 6379
password:
lettuce:
pool:
max-active: 100
max-idle: 50
min-idle: 10
**前后端访问地址**
- 前端访问地址https://oa.yinghuasoft.com
- 后端api访问地址http://123.249.108.39:8083/jeecg-boot/doc.html#/home