1.4 KiB
1.4 KiB
Frontend Fix Instructions
Quick Fix Command
Run this on your Proxmox host:
pct exec 10130 -- bash -c "cd /opt/dbis-core/frontend && npm install && npm run build && systemctl restart nginx"
Or Use the Fix Script
On Proxmox host:
cd /home/intlc/projects/proxmox/dbis_core
./scripts/run-frontend-fix.sh
What This Does
- ✅ Installs frontend dependencies (
npm install) - ✅ Builds the frontend application (
npm run build) - ✅ Creates the
dist/folder with all assets - ✅ Restarts nginx to serve the new build
Verification
After running the fix, verify it worked:
# Check build exists
pct exec 10130 -- test -f /opt/dbis-core/frontend/dist/index.html && echo "✅ SUCCESS" || echo "❌ FAILED"
# Check nginx
pct exec 10130 -- systemctl status nginx
# Test HTTP
curl -I http://192.168.11.130
Expected Result
After the fix:
- ✅ Browser shows React app (login page or dashboard)
- ✅ No more "deployment pending" message
- ✅ All assets load correctly
- ✅ No 404 errors in browser console
If Still Not Working
- Clear browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- Check browser console for errors
- Check nginx logs:
pct exec 10130 -- tail -50 /var/log/nginx/error.log - Verify build output:
pct exec 10130 -- ls -la /opt/dbis-core/frontend/dist/