zhangjf 7a3fcb3ed7 feat: 使用Maven Assembly实现标准化打包
主要更新:
- 每个服务打包为独立tar.gz,包含bin/lib/conf目录
- bin目录:启动/停止/重启/状态脚本
- lib目录:服务JAR包及所有依赖
- conf目录:配置文件(application.yml等)

新增文件:
- 各模块src/main/assembly/assembly.xml配置
- 各模块src/main/scripts启动脚本
- server-deploy/scripts一键管理脚本
- server-deploy/assembly/assembly.xml模板

更新文档:
- 单机部署文档v2.0,说明assembly打包方式
2026-02-22 14:04:57 +08:00

42 lines
1.1 KiB
Bash

#!/bin/bash
# 查看所有服务状态
DEPLOY_HOME="/opt/fundplatform/deploy"
SERVICES=(
"fund-gateway:8000"
"fund-sys:8100"
"fund-cust:8200"
"fund-proj:8300"
"fund-req:8400"
"fund-exp:8500"
"fund-receipt:8600"
"fund-report:8700"
"fund-file:8800"
)
echo "=========================================="
echo " Service Status"
echo "=========================================="
printf "%-20s %-10s %-10s %s\n" "Service" "Port" "Status" "PID"
echo "------------------------------------------"
for item in "${SERVICES[@]}"; do
service="${item%%:*}"
port="${item##*:}"
pid_file="${DEPLOY_HOME}/${service}/${service}.pid"
if [ -f "$pid_file" ]; then
PID=$(cat $pid_file)
if ps -p $PID > /dev/null 2>&1; then
printf "%-20s %-10s \033[32m%-10s\033[0m %s\n" "$service" "$port" "RUNNING" "$PID"
else
printf "%-20s %-10s \033[31m%-10s\033[0m %s\n" "$service" "$port" "STOPPED" "-"
fi
else
printf "%-20s %-10s \033[31m%-10s\033[0m %s\n" "$service" "$port" "STOPPED" "-"
fi
done
echo "=========================================="