Add pre-built client for low-memory servers
This commit is contained in:
1 parent
94456401d5
commit
f15de1ab57
2 files changed
+12
-7
No files matched your search
+11
-6
@@ -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 ""
|
||||
|
||||
Reference in new issue
Block a user