Files
the-nexus/deploy.sh
Alexander Whitestone 0b0dd87b4e
Some checks failed
Review Approval Gate / verify-review (pull_request) Failing after 8s
CI / validate (pull_request) Failing after 56s
CI / test (pull_request) Failing after 58s
docs: fix deploy.sh port comments (4200/4201 -> 8765/8766) (#1413)
Comments referenced ports 4200/4201 but docker-compose.yml maps:
- nexus-main -> 8765
- nexus-staging -> 8766

Fixes #1413.
2026-04-14 14:05:26 -04:00

18 lines
540 B
Bash
Executable File

#!/usr/bin/env bash
# deploy.sh — spin up (or update) the Nexus staging environment
# Usage: ./deploy.sh — rebuild and restart nexus-main (port 8765)
# ./deploy.sh staging — rebuild and restart nexus-staging (port 8766)
set -euo pipefail
SERVICE="${1:-nexus-main}"
case "$SERVICE" in
staging) SERVICE="nexus-staging" ;;
main) SERVICE="nexus-main" ;;
esac
echo "==> Deploying $SERVICE"
docker compose build "$SERVICE"
docker compose up -d --force-recreate "$SERVICE"
echo "==> Done. Container: $SERVICE"