Freshness diagnostics API, UI trust notes, mission control/stats updates, and deploy scripts.
Made-with: Cursor
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
# Frontend Deployment Fix
|
||||
|
||||
> Historical note: this document describes the legacy static-SPA deployment
|
||||
> path. The canonical live frontend deployment is now
|
||||
> `./scripts/deploy-next-frontend-to-vmid5000.sh`. Keep this file only as
|
||||
> compatibility/audit reference unless you are deliberately working on the old
|
||||
> static assets.
|
||||
|
||||
## Problem
|
||||
The explorer at `https://explorer.d-bis.org/` shows "Page not found" because:
|
||||
1. Nginx is proxying to Blockscout (port 4000) which serves its own UI
|
||||
2. The custom frontend (`explorer-monorepo/frontend/public/index.html`) is not deployed to `/var/www/html/` on VMID 5000
|
||||
2. The historical custom static frontend (`explorer-monorepo/frontend/public/index.html`) is not deployed to `/var/www/html/` on VMID 5000
|
||||
|
||||
## Solution
|
||||
|
||||
@@ -33,21 +39,21 @@ Deploy the custom frontend to `/var/www/html/index.html`:
|
||||
**From Proxmox host:**
|
||||
```bash
|
||||
cd /home/intlc/projects/proxmox/explorer-monorepo
|
||||
bash scripts/deploy-frontend-to-vmid5000.sh
|
||||
bash scripts/deploy-next-frontend-to-vmid5000.sh
|
||||
```
|
||||
|
||||
**Or manually from VMID 5000:**
|
||||
```bash
|
||||
# If you have access to the repo in VMID 5000
|
||||
# Historical static-SPA compatibility only:
|
||||
cp /home/intlc/projects/proxmox/explorer-monorepo/frontend/public/index.html /var/www/html/index.html
|
||||
chown www-data:www-data /var/www/html/index.html
|
||||
```
|
||||
|
||||
**Or using SSH from Proxmox host:**
|
||||
```bash
|
||||
# Using existing deploy script
|
||||
# Deprecated static deploy shim; kept only for historical compatibility context
|
||||
cd /home/intlc/projects/proxmox/explorer-monorepo
|
||||
PASSWORD="***REDACTED-LEGACY-PW***" bash scripts/deploy.sh
|
||||
bash scripts/deploy.sh
|
||||
```
|
||||
|
||||
### Step 3: Verify
|
||||
@@ -95,4 +101,3 @@ The updated nginx config:
|
||||
## Files Modified
|
||||
- `/etc/nginx/sites-available/blockscout` - Nginx configuration
|
||||
- `/var/www/html/index.html` - Custom frontend (needs to be deployed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user