- 将各服务脚本统一到项目根目录scripts目录 - Assembly配置引用根目录scripts,避免重复 - 脚本自动从目录名推断服务名称 - 排除docker相关配置文件(application-docker.yml) - 新增env.properties环境变量配置模板 - 更新单机部署文档至v2.1
19 lines
330 B
Bash
Executable File
19 lines
330 B
Bash
Executable File
#!/bin/bash
|
|
# 一键重启所有服务
|
|
|
|
DEPLOY_HOME="/opt/fundplatform/deploy"
|
|
|
|
# 停止所有服务
|
|
if [ -f "${DEPLOY_HOME}/stop-all.sh" ]; then
|
|
${DEPLOY_HOME}/stop-all.sh
|
|
fi
|
|
|
|
echo ""
|
|
echo "Waiting 10 seconds..."
|
|
sleep 10
|
|
|
|
# 启动所有服务
|
|
if [ -f "${DEPLOY_HOME}/start-all.sh" ]; then
|
|
${DEPLOY_HOME}/start-all.sh
|
|
fi
|