Add pre-built client for low-memory servers
This commit is contained in:
1 parent
94456401d5
commit
f15de1ab57
2 files changed
+8
-3
No files matched your search
+1
-1
@@ -4,7 +4,6 @@ node_modules/
|
|||||||
*.db
|
*.db
|
||||||
*.db-shm
|
*.db-shm
|
||||||
*.db-wal
|
*.db-wal
|
||||||
client/build/
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
@@ -13,3 +12,4 @@ yarn-error.log*
|
|||||||
.idea/
|
.idea/
|
||||||
deploy-package/
|
deploy-package/
|
||||||
data/*.db
|
data/*.db
|
||||||
|
# Note: client/build/ is included for low-memory deployments
|
||||||
+7
-2
@@ -77,13 +77,18 @@ echo ""
|
|||||||
echo "Step 5: Installing dependencies..."
|
echo "Step 5: Installing dependencies..."
|
||||||
npm install --production
|
npm install --production
|
||||||
|
|
||||||
# Build client
|
# Build client (skip if build folder exists - for low-memory servers)
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 6: Building frontend..."
|
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
|
cd client
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
cd ..
|
cd ..
|
||||||
|
else
|
||||||
|
echo "Using pre-built frontend"
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup configuration
|
# Setup configuration
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in new issue
Block a user