Files
the-nexus/deploy.sh
Timmy 35c782ae32
Some checks failed
CI / test (pull_request) Failing after 42s
Review Approval Gate / verify-review (pull_request) Failing after 5s
CI / validate (pull_request) Failing after 39s
feat(#1339): Deploy Nexus to proper URL for preview
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
2026-04-13 21:25:55 -04:00

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"