Add pre-built client for low-memory servers

This commit is contained in:
nmemmert committed 2025-12-04 12:21:35 -05:00
1 parent 94456401d5
commit f15de1ab57
2 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -4,7 +4,6 @@ node_modules/
*.db
*.db-shm
*.db-wal
client/build/
.DS_Store
npm-debug.log*
yarn-debug.log*
@@ -13,3 +12,4 @@ yarn-error.log*
.idea/
deploy-package/
data/*.db
# Note: client/build/ is included for low-memory deployments
+11 -6
View File
@@ -77,13 +77,18 @@ echo ""
echo "Step 5: Installing dependencies..."
npm install --production
# Build client
# Build client (skip if build folder exists - for low-memory servers)
echo ""
echo "Step 6: Building frontend..."
cd client
npm install
npm run build
cd ..
echo "Step 6: Setting up frontend..."
if [ ! -d "client/build" ]; then
echo "Building frontend (this may take 10-15 minutes on low-memory servers)..."
cd client
npm install
npm run build
cd ..
else
echo "Using pre-built frontend"
fi
# Setup configuration
echo ""