update install

This commit is contained in:
2026-03-12 16:50:26 +08:00
parent 2c7d5ea589
commit 5e2a86e3be

View File

@@ -61,24 +61,9 @@ EOF
fi fi
} }
# Build frontend
build_frontend() {
echo -e "${YELLOW}Building frontend...${NC}"
cd "$PROJECT_ROOT/frontend"
if [ ! -d "node_modules" ]; then
echo "Installing frontend dependencies..."
npm install
fi
npm run build
echo -e "${GREEN}✓ Frontend built successfully${NC}\n"
}
# Build Docker images # Build Docker images
build_images() { build_images() {
echo -e "${YELLOW}Building Docker images...${NC}" echo -e "${YELLOW}Building Docker images (including frontend)...${NC}"
cd "$PROJECT_ROOT" cd "$PROJECT_ROOT"
# Check if docker-compose or docker compose # Check if docker-compose or docker compose
@@ -152,7 +137,6 @@ show_status() {
main() { main() {
check_requirements check_requirements
create_env_file create_env_file
build_frontend
build_images build_images
start_services start_services
init_database init_database