Files
dbis_core/QUICK_FIX.md
2026-01-02 20:27:42 -08:00

1.2 KiB

Quick Frontend Fix

🚀 Run This Command on Your Proxmox Host

pct exec 10130 -- bash -c "cd /opt/dbis-core/frontend && npm install && npm run build && systemctl restart nginx"

What This Does

  1. Installs all npm dependencies
  2. Builds the frontend application (creates dist/ folder)
  3. Restarts nginx to serve the new build

🔍 Verify It Worked

# Check if build was created
pct exec 10130 -- test -f /opt/dbis-core/frontend/dist/index.html && echo "✅ SUCCESS" || echo "❌ FAILED"

# Check nginx status
pct exec 10130 -- systemctl status nginx

🌐 Then

  1. Clear browser cache (Ctrl+Shift+R)
  2. Refresh the page at http://192.168.11.130
  3. You should see the React app, not the placeholder message

📝 Alternative: Use the Script

If you prefer using a script:

cd /home/intlc/projects/proxmox/dbis_core
./scripts/fix-frontend.sh

If It Still Doesn't Work

Check for errors:

# Check build errors
pct exec 10130 -- bash -c "cd /opt/dbis-core/frontend && npm run build 2>&1 | tail -30"

# Check nginx errors
pct exec 10130 -- tail -50 /var/log/nginx/error.log

# Check if directory exists
pct exec 10130 -- ls -la /opt/dbis-core/frontend/