fix: correct paths in deployment scripts for container execution
Deploy / Deploy Production (push) Failing after 2115h6m34s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 2115h9m42s
Deploy / Deploy Staging (push) Failing after 2115h8m36s

This commit is contained in:
Xiaoxia AI
2026-06-20 12:20:55 +08:00
parent ae13650bfd
commit 50d2d9642a
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
#!/bin/sh
set -eu
ROOT_DIR="/var/lib/xiaoxia-saas-production/repo"
# 容器内路径(通过 -v /:/host 映射)
ROOT_DIR="/host/var/lib/xiaoxia-saas-production/repo"
COMPOSE_DIR="$ROOT_DIR/infra/docker"
ENV_FILE="/var/lib/xiaoxia-saas-production/.env"
ENV_FILE="/host/var/lib/xiaoxia-saas-production/.env"
cd "$ROOT_DIR"
cp "$ENV_FILE" "$ROOT_DIR/.env"
+3 -2
View File
@@ -1,9 +1,10 @@
#!/bin/sh
set -eu
ROOT_DIR="/var/lib/xiaoxia-saas-staging/repo"
# 容器内路径(通过 -v /:/host 映射)
ROOT_DIR="/host/var/lib/xiaoxia-saas-staging/repo"
COMPOSE_DIR="$ROOT_DIR/infra/docker"
ENV_FILE="/var/lib/xiaoxia-saas-staging/.env"
ENV_FILE="/host/var/lib/xiaoxia-saas-staging/.env"
cd "$ROOT_DIR"
cp "$ENV_FILE" "$ROOT_DIR/.env"