Files
tilbudgivern/quick-deploy.sh
T
alex e82f2c7a8f feat: Enhance GeometryInput to auto-select roof type based on selected packages
style: Add form help text styling in ProjectFlow.css

fix: Update SmartPackagesEnhanced to use strict equality checks for isCustom

refactor: Modify unified-server.js to use material_name instead of sku and implement new project_packages table for package management

chore: Create new MCP server configuration files for deployment

chore: Add SQL script to introduce wall_height column in roof_geometry table

build: Implement build and test script for local development

docs: Provide instructions for updating proxy server configuration

chore: Add quick deploy script for streamlined deployment process

test: Create comprehensive test, build, and deploy script for Tilbudgivern
2025-09-26 14:36:19 +02:00

38 lines
892 B
Bash
Executable File

#!/bin/bash
# Tilbudgivern Quick Deploy Script
# Hurtig version - kun build og restart (uden omfattende tests)
set -e # Stop ved første fejl
# Farver til output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
echo -e "${YELLOW}⚡ Quick Deploy - Build & Restart${NC}"
echo "================================"
# Tjek at vi er i roden
if [ ! -f "package.json" ]; then
echo -e "${RED}❌ Ikke i rod af projekt${NC}"
exit 1
fi
# Build frontend
echo -e "${YELLOW}🏗️ Building...${NC}"
cd frontend && npm run build > /dev/null 2>&1 || {
echo -e "${RED}❌ Build fejlede${NC}"
exit 1
}
cd ..
# Restart server
echo -e "${YELLOW}🔄 Restarting...${NC}"
pm2 restart tilbudgivern-unified > /dev/null 2>&1 || {
echo -e "${RED}❌ Restart fejlede${NC}"
exit 1
}
echo -e "${GREEN}✅ Done! Server kører på http://localhost:4031${NC}"