如果想快速部署pigX,请完全参考本篇文档。
如果有个性化的修改,请参考本篇运行起来以后,自行修改。循序渐进
git https://www.gitee.wang/pig/pigx.git
参数说明
版本: mysql5.7+
默认字符集: utf8mb4
默认排序规则: utf8mb4_general_ci
脚本说明 2.0 把核心库和业务库分开,建议使用两个库
1scheme.sql 建库语句
2pigxx.sql 核心数据库
3pigxx_ac.sql 工作流相关数据库
# redis 相关
spring:
redis:
password:
host: pigx-redis
# 数据源
spring:
datasource:
username: root
password: lengleng
url: jdbc:mysql://pigx-mysql:3306/pigxx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
修改本地hosts文件中存在以下片段
# 本地测试环境
127.0.0.1 pigx-mysql
127.0.0.1 pigx-zookeeper
127.0.0.1 pigx-redis
127.0.0.1 pigx-gateway
127.0.0.1 pigx-eureka
1. PigxEurekaApplication
2. PigxConfigApplication
3. PigxGatewayApplication
4. PigxAuthApplication
5. PigxAdminApplication
git clone https://www.gitee.wang/pig/pigx-ui.git
# 安装cnpm 镜像
npm run pre
# 安装依赖
npm install
# 启动
npm run dev