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