ES module imports fail via file:// or raw Forge URLs (CORS + missing Content-Type). boot.js already detects this and warns users. Three deployment options: - ./preview.sh — local Python server, correct MIME types - docker compose up nexus-preview — nginx + WS proxy on :8080 - Push to main — GitHub Pages auto-deploy via CI Files: - Dockerfile.preview: nginx preview container - preview/nginx.conf: correct MIME types + /api/world/ws proxy - preview.sh: Python one-liner preview server - PREVIEW.md: deployment documentation - .github/workflows/pages.yml: GitHub Pages CI/CD - docker-compose.yml: added nexus-preview + nexus-backend - deploy.sh: added preview/full modes Fixes #1339
35 lines
601 B
YAML
35 lines
601 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
nexus-main:
|
|
build: .
|
|
container_name: nexus-main
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8765:8765"
|
|
|
|
nexus-staging:
|
|
build: .
|
|
container_name: nexus-staging
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8766:8765"
|
|
|
|
nexus-backend:
|
|
build: .
|
|
container_name: nexus-backend
|
|
restart: unless-stopped
|
|
expose:
|
|
- "8765"
|
|
|
|
nexus-preview:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.preview
|
|
container_name: nexus-preview
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- nexus-backend
|