From 4cf5d2bdcb8a7aa66be497cd6f4c9f752a38a891 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:17:20 -0500 Subject: [PATCH] Update DEPLOYMENT.md with off-box build workflow --- DEPLOYMENT.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 827a47d..2e7713c 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -48,6 +48,33 @@ curl -fsSL https://raw.githubusercontent.com/nmemmert/monitor/main/install-ubunt Open your browser and go to: ``` http://your-ubuntu-server-ip:3001 + +## Off-Box Build Workflow (Recommended for low-power servers) + +If your server cannot build the React frontend, build locally on your development machine and deploy the prebuilt assets: + +1. Build locally on Windows: + ```powershell + cd c:\Users\NateEmmert\mon + npm run build + git add -f client/build/ + git commit -m "Include prebuilt client/build for deployment" + git push origin main + ``` + +2. Update server without building: + ```bash + ssh root@ + cd /opt/resource-monitor + git pull origin main + pm2 restart resource-monitor + pm2 logs resource-monitor --lines 100 + ``` + +3. Verify: + - Open `http://:3001` + - API responds: `curl http://localhost:3001/api/dashboard | head -c 500` + - Logs show DB migration messages (e.g., email_to column) ``` You can find your server IP by running on Ubuntu: