ES module imports fail via file:// or raw Forge URLs. Port 3000 (avoids conflict with L402 on :8080, see #1415). Three options: ./preview.sh, docker, GitHub Pages. Triage findings filed as new issues: #1413 #1414 #1415 Fixes #1339
26 lines
838 B
Bash
Executable File
26 lines
838 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# deploy.sh — Nexus environment
|
|
# ./deploy.sh — nexus-main (8765)
|
|
# ./deploy.sh staging — nexus-staging (8766)
|
|
# ./deploy.sh preview — static preview (3000)
|
|
# ./deploy.sh full — preview + backend
|
|
set -euo pipefail
|
|
SERVICE="${1:-nexus-main}"
|
|
case "$SERVICE" in
|
|
staging) SERVICE="nexus-staging" ;;
|
|
main) SERVICE="nexus-main" ;;
|
|
preview)
|
|
docker compose build nexus-preview
|
|
docker compose up -d --force-recreate nexus-preview
|
|
echo "==> http://localhost:3000"
|
|
exit 0 ;;
|
|
full)
|
|
docker compose build nexus-preview nexus-backend
|
|
docker compose up -d --force-recreate nexus-preview nexus-backend
|
|
echo "==> Preview: http://localhost:3000"
|
|
exit 0 ;;
|
|
esac
|
|
docker compose build "$SERVICE"
|
|
docker compose up -d --force-recreate "$SERVICE"
|
|
echo "==> Done: $SERVICE"
|