1.2 KiB
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
- Installs all npm dependencies
- Builds the frontend application (creates
dist/folder) - 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
- Clear browser cache (Ctrl+Shift+R)
- Refresh the page at http://192.168.11.130
- 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/