Skip to content

后端部署文档

easyink edited this page Aug 25, 2022 · 2 revisions

1. 本地服务器启动

  • 从 gitee.net 克隆:

git clone https://github.com/lianluoyi/easyink_System.git 服务器默认运行在8090端口,访问localhost:8090查看。

  • 如何启动: 配置文件或者环境变量配置 中间件的连接信息与企微应用信息

  • 初始化和拉取 UI 模块:

git clone https://github.com/lianluoyi/easyink_Dashboard.git git clone https://github.com/lianluoyi/easyink_Sidebar.git 您需要使用 Nginx 来部署 UI 模块或使用开发软件来启动它。 项目启动命令见对应项目的readme文档, Nginx部署步骤见 -> 前端部署文档

2. 服务器部署

yum -y install git
git clone https://github.com/lianluoyi/easyink_System.git easyink 
cd easyink/docker 
sh init.sh

不设置 -type的话,默认不安装ES,w无法使用【会话存档】功能。如果要开启此功能,增加参数-type

3. 升级服务

手动升级

  • 获取项目中当前版本的sql update文件并执行,如从1.2.0升级到1.4.0,则需要执行这两个版本间的所有变更sql文件
  • 修改easyink/docker 目录下的.env文件,并用docker-compose工具进行更新,等待更新完执行以下命令:
cd easyink/docker
echo "ver_tag={目标版本号}"> .env 
docker compose -f docke-compose-service.yml up -d 

使用脚本升级

sh update.sh -v={目标版本号}
Clone this wiki locally