fix(deploy): 加固 Redis 持久化与旧环境启动配置

This commit is contained in:
2026-09-23 16:20:55 +08:00
parent 26b1cdcdc6
commit 74ada0b0bf
18 changed files with 405 additions and 15 deletions
+4
View File
@@ -547,6 +547,7 @@ configure_http_nginx_proxy() {
start_services() {
echo ""
echo "🚀 启动 EasyAI 服务..."
sudo ./scripts/check-redis-persistence.sh
if docker compose version &>/dev/null; then
sudo docker compose pull && sudo docker compose up -d
else
@@ -659,6 +660,9 @@ main() {
else
init_public_api_base_url .env configure "$PUBLIC_API_BASE_URL_CANDIDATE"
fi
# shellcheck source=scripts/init-security-origin.sh
. ./scripts/init-security-origin.sh
init_security_origin .env
if [ "$DEPLOY_DRY_RUN" = "1" ]; then
echo ""