File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " ======================================"
5+ echo " Building Dashtec Monorepo for Production"
6+ echo " ======================================"
7+
8+ # Check if pnpm is installed
9+ if ! command -v pnpm & > /dev/null; then
10+ echo " Error: pnpm is not installed"
11+ exit 1
12+ fi
13+
14+ # Clean previous builds
15+ echo " "
16+ echo " 📦 Cleaning previous builds..."
17+ pnpm clean
18+
19+ # Install dependencies
20+ echo " "
21+ echo " 📦 Installing dependencies..."
22+ pnpm install --frozen-lockfile
23+
24+ # Generate Prisma client
25+ echo " "
26+ echo " 🔧 Generating Prisma client..."
27+ pnpm db:generate
28+
29+ # Build all packages
30+ echo " "
31+ echo " 🚀 Building all packages..."
32+ pnpm build
33+
34+ echo " "
35+ echo " ======================================"
36+ echo " ✅ Build completed successfully!"
37+ echo " ======================================"
38+ echo " "
39+ echo " Next steps:"
40+ echo " 1. Configure environment: pnpm env:propagate mainnet"
41+ echo " 2. Run database migrations: pnpm db:migrate"
42+ echo " 3. Start services using PM2 (see scripts/deploy-*.sh)"
43+ echo " "
You can’t perform that action at this time.
0 commit comments