增加了proxy配置

main
mula.liu 2025-12-03 13:59:25 +08:00
parent 053d4ac052
commit 1c607edc13
1 changed files with 13 additions and 0 deletions

View File

@ -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