script
This commit is contained in:
		
							parent
							
								
									f3e2480182
								
							
						
					
					
						commit
						27021ab499
					
				
							
								
								
									
										22
									
								
								deploy.sh
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								deploy.sh
									
									
									
									
									
								
							@ -410,13 +410,14 @@ printf "${DIM}${GREEN}Initializing deployment matrix...${RESET}\n"
 | 
			
		||||
matrix_rain 1
 | 
			
		||||
 | 
			
		||||
# System information display
 | 
			
		||||
draw_box "DEPLOYMENT PARAMETERS" "$(cat << EOF
 | 
			
		||||
draw_box "DEPLOYMENT PARAMETERS" "$(cat << 'PARAMS'
 | 
			
		||||
Timestamp: $(date '+%Y-%m-%d %H:%M:%S')
 | 
			
		||||
Original User: $ORIGINAL_USER
 | 
			
		||||
Working Directory: $(pwd)
 | 
			
		||||
Target Webroot: $WEBROOT
 | 
			
		||||
Terminal Size: ${COLS}x${LINES}
 | 
			
		||||
EOF)" 60 "$MAGENTA"
 | 
			
		||||
PARAMS
 | 
			
		||||
)" 60 "$MAGENTA"
 | 
			
		||||
 | 
			
		||||
sleep 1
 | 
			
		||||
 | 
			
		||||
@ -515,7 +516,7 @@ find_and_use_npm() {
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    # C) Installation instructions with fancy formatting
 | 
			
		||||
    draw_box "NPM NOT FOUND" "$(cat << 'EOF'
 | 
			
		||||
    draw_box "NPM NOT FOUND" "$(cat << 'NPMHELP'
 | 
			
		||||
Please install Node.js and npm first:
 | 
			
		||||
 | 
			
		||||
Option 1 (apt):
 | 
			
		||||
@ -528,7 +529,8 @@ Option 2 (NodeSource – recommended):
 | 
			
		||||
Option 3 (nvm – as user):
 | 
			
		||||
  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
 | 
			
		||||
  source ~/.bashrc && nvm install 20
 | 
			
		||||
EOF)" 70 "$RED"
 | 
			
		||||
NPMHELP
 | 
			
		||||
)" 70 "$RED"
 | 
			
		||||
    
 | 
			
		||||
    return 1
 | 
			
		||||
}
 | 
			
		||||
@ -809,7 +811,7 @@ if [ $VALIDATION_ERRORS -eq 0 ]; then
 | 
			
		||||
    celebrate
 | 
			
		||||
    
 | 
			
		||||
    # Next steps in a beautiful box
 | 
			
		||||
    draw_box "🎯 MISSION BRIEFING - NEXT STEPS" "$(cat << EOF
 | 
			
		||||
    draw_box "🎯 MISSION BRIEFING - NEXT STEPS" "$(cat << 'STEPS'
 | 
			
		||||
1. 🔧 Configure environment variables in $WEBROOT/.env
 | 
			
		||||
   • Set PUBLIC_BASE_URL, AI service endpoints
 | 
			
		||||
   • Configure AUTH_SECRET and database connections
 | 
			
		||||
@ -824,7 +826,8 @@ if [ $VALIDATION_ERRORS -eq 0 ]; then
 | 
			
		||||
 | 
			
		||||
🌐 Application fortress established at: $WEBROOT
 | 
			
		||||
🎯 Ready for production deployment!
 | 
			
		||||
EOF)" 70 "$GREEN"
 | 
			
		||||
STEPS
 | 
			
		||||
)" 70 "$GREEN"
 | 
			
		||||
 | 
			
		||||
    # Final celebration
 | 
			
		||||
    echo
 | 
			
		||||
@ -834,8 +837,11 @@ EOF)" 70 "$GREEN"
 | 
			
		||||
    
 | 
			
		||||
else
 | 
			
		||||
    # Error summary
 | 
			
		||||
    draw_box "⚠️ DEPLOYMENT COMPLETED WITH WARNINGS" "Found $VALIDATION_ERRORS validation issues
 | 
			
		||||
Please review and resolve before proceeding" 60 "$YELLOW"
 | 
			
		||||
    draw_box "⚠️ DEPLOYMENT COMPLETED WITH WARNINGS" "$(cat << 'WARNINGS'
 | 
			
		||||
Found $VALIDATION_ERRORS validation issues
 | 
			
		||||
Please review and resolve before proceeding
 | 
			
		||||
WARNINGS
 | 
			
		||||
)" 60 "$YELLOW"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Final timestamp with style
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user