增加了proxy配置
parent
053d4ac052
commit
1c607edc13
13
deploy.sh
13
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue