dlbGatekeeper/build.sh

34 lines
548 B
Bash
Executable File

#!/bin/bash
# Exit on any error
set -e
echo "🏗️ Building DLB Gatekeeper..."
# Build Frontend
echo "📦 Building Frontend..."
cd frontend
npm install
npm run build
cd ..
# Build Backend
echo "📦 Building Backend..."
cd backend
npm install
npm run build
cd ..
# Create dist directory if it doesnt exist
mkdir -p dist
# Copy frontend build to dist
echo "📋 Copying frontend build..."
cp -r frontend/dist/* dist/
# Copy backend build to dist
echo "📋 Copying backend build..."
cp -r backend/dist/* dist/
echo "✅ Build complete!"