fix: correct paths in deployment scripts for container execution
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user