增加了proxy配置
parent
053d4ac052
commit
1c607edc13
13
deploy.sh
13
deploy.sh
|
|
@ -146,6 +146,13 @@ stop_services() {
|
||||||
restart_services() {
|
restart_services() {
|
||||||
log "Restarting Cosmo services..."
|
log "Restarting Cosmo services..."
|
||||||
cd "$PROJECT_ROOT"
|
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
|
docker-compose restart
|
||||||
log "✓ Services restarted"
|
log "✓ Services restarted"
|
||||||
show_status
|
show_status
|
||||||
|
|
@ -228,6 +235,12 @@ update_system() {
|
||||||
cd "$PROJECT_ROOT"
|
cd "$PROJECT_ROOT"
|
||||||
git pull
|
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
|
# Rebuild images
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue