- 新增 ConfsTask(ITask,与 HttpTask 同构):ConfigStore + INI/JSON 取值 + get/list/reload/health 四路由,协议与 Python confs 逐字节兼容 - 新增 ConfsLogC 异步日志客户端(沿用 confs2 LogC,服务名 confs) - main.cpp 新增 --confs <port> 选项与 CONFS_* 环境变量;不传则行为不变 - Makefile 链接 -lus_msg,版本 0.0.4 → 0.1.0 - _run.sh 启用 --confs 8010;_set.sh 自建 configs → ../confs/configs 链接 - init.txt 移除 confs2 自启动行(由 core 内嵌承担) - 黑盒对比测试 16/16 通过(tests/blackbox/test_core_confs.py)
17 lines
399 B
Bash
17 lines
399 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
make clear && make $@
|
|
|
|
# 创建 configs 符号链接(指向 ../confs/configs/,内嵌 confs 服务配置文件零迁移)
|
|
if [ -L configs ] && [ ! -e configs ]; then
|
|
rm -f configs
|
|
fi
|
|
if [ ! -e configs ]; then
|
|
ln -s ../confs/configs configs
|
|
echo "[core] 已创建 configs → ../confs/configs 符号链接"
|
|
fi
|
|
|
|
make install
|