update
This commit is contained in:
28
deploy.sh
28
deploy.sh
@@ -76,26 +76,24 @@ else
|
||||
print_status "Caddy network exists"
|
||||
fi
|
||||
|
||||
# Step 4: Update Caddy configuration
|
||||
# Step 4: Show Caddy configuration to add
|
||||
echo ""
|
||||
echo -e "${BLUE}Step 4: Updating Caddy configuration...${NC}"
|
||||
echo -e "${BLUE}Step 4: Caddy configuration...${NC}"
|
||||
|
||||
# Check if Traceability entry already exists in Caddyfile
|
||||
if grep -q "Traceability.nabd-co.com" "$CADDY_DIR/Caddyfile" 2>/dev/null; then
|
||||
print_status "Caddy configuration already exists"
|
||||
print_status "Caddy configuration already exists in Caddyfile"
|
||||
else
|
||||
# Append Traceability configuration to Caddyfile
|
||||
cat >> "$CADDY_DIR/Caddyfile" << 'EOF'
|
||||
|
||||
# -------------------------
|
||||
# Traceability Matrix Proxy
|
||||
# -------------------------
|
||||
Traceability.nabd-co.com {
|
||||
reverse_proxy traceability_web:80
|
||||
encode gzip
|
||||
}
|
||||
EOF
|
||||
print_status "Added Traceability configuration to Caddyfile"
|
||||
print_warning "Add this entry to your Caddyfile at $CADDY_DIR/Caddyfile:"
|
||||
echo ""
|
||||
echo -e "${YELLOW}# -------------------------"
|
||||
echo "# Traceability Matrix Proxy"
|
||||
echo "# -------------------------"
|
||||
echo "Traceability.nabd-co.com {"
|
||||
echo " reverse_proxy traceability_web:80"
|
||||
echo " encode gzip"
|
||||
echo -e "}${NC}"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# Step 5: Build and start the application
|
||||
|
||||
Reference in New Issue
Block a user