Files
the-nexus/deploy.sh
Timmy decd02eb3f
Some checks failed
CI / test (pull_request) Failing after 49s
CI / validate (pull_request) Failing after 56s
Review Approval Gate / verify-review (pull_request) Failing after 7s
feat(#1339): Deploy Nexus to proper URL for preview
ES module imports fail via file:// or raw Forge URLs.
Three options: ./preview.sh, docker compose up nexus-preview, GitHub Pages.

Fixes #1339
2026-04-13 21:20:41 -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 (8080)
# ./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:8080"
exit 0 ;;
full)
docker compose build nexus-preview nexus-backend
docker compose up -d --force-recreate nexus-preview nexus-backend
echo "==> Preview: http://localhost:8080"
exit 0 ;;
esac
docker compose build "$SERVICE"
docker compose up -d --force-recreate "$SERVICE"
echo "==> Done: $SERVICE"