From 1c607edc13c562b40b39f4c2105c7d7dcf79f4c6 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Wed, 3 Dec 2025 13:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86proxy=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/deploy.sh b/deploy.sh index e159caf..af60b56 100755 --- a/deploy.sh +++ b/deploy.sh @@ -146,6 +146,13 @@ stop_services() { restart_services() { log "Restarting Cosmo services..." cd "$PROJECT_ROOT" + + # Copy environment file to ensure latest config is used + if [ -f "$PROJECT_ROOT/.env.production" ]; then + cp "$PROJECT_ROOT/.env.production" "$PROJECT_ROOT/.env" + log "✓ Environment configuration updated" + fi + docker-compose restart log "✓ Services restarted" show_status @@ -228,6 +235,12 @@ update_system() { cd "$PROJECT_ROOT" git pull + # Copy environment file to ensure latest config is used + if [ -f "$PROJECT_ROOT/.env.production" ]; then + cp "$PROJECT_ROOT/.env.production" "$PROJECT_ROOT/.env" + log "✓ Environment configuration updated" + fi + # Rebuild images docker-compose build