非繁 3b9a3d24f9 建立 hxcs 试运行一致性更新流程 il y a 4 mois
..
bin 3b9a3d24f9 建立 hxcs 试运行一致性更新流程 il y a 4 mois
conf f79e491dca 初始化 ZQ 站群代码仓库 il y a 5 mois
migrations 3b9a3d24f9 建立 hxcs 试运行一致性更新流程 il y a 4 mois
repairs cefa5899c5 修复试运行游客账号组件登记 il y a 4 mois
src f79e491dca 初始化 ZQ 站群代码仓库 il y a 5 mois
static f79e491dca 初始化 ZQ 站群代码仓库 il y a 5 mois
README.md 3b9a3d24f9 建立 hxcs 试运行一致性更新流程 il y a 4 mois

README.md

ZQ 本地运行

这里放 ZQ 的本地运行工具。分两种:

  • 安全预览:只看静态资源,不连接数据库。
  • 完整后台:用本机 Docker/Rancher Desktop 启动 MySQL、Redis、RabbitMQ 和 Tomcat 8,再运行 ZQ。

安全预览

./local-run/bin/start-safe.sh
./local-run/bin/stop-safe.sh
http://127.0.0.1:4180/

完整后台

完整后台不会修改原始 WebRoot 配置;它会复制一份运行副本到:

local-run/runtime/full-local/webapp

启动:

./local-run/bin/start-full.sh

停止:

./local-run/bin/stop-full.sh

查看状态:

./local-run/bin/status-full.sh

访问:

http://localhost:4188/
http://localhost:4188/dev/login.jsp

完整后台会优先使用本机已有的 MySQL 5.7;如果本机没有 MySQL,再尝试 Docker / Rancher Desktop。数据库来源是:

../SpaceCore_20220929/Dump20220927.sql

试运行环境更新

面向非技术人员的固定入口:

检查本地环境.command
更新试运行环境.command
只检查试运行环境.command
查看上次更新报告.command

以后凡是涉及后台菜单、组件、模板、角色、权限、初始栏目或示例文章的数据库配置变更,都必须写入:

local-run/migrations/

迁移脚本会由 local-run/bin/sync-to-hxcs-prod.sh 自动按文件名顺序执行,并记录到试运行库的 sp_gzhx_core.zq_migration_history。不要把本地完整 SQL 直接导入试运行环境。