Phase 1: Create directory structure for spec/hosts/web/sx

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 02:09:29 +00:00
parent f8a8e1eeb0
commit 8ed8134d66
6 changed files with 774 additions and 0 deletions

30
dev-sx.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
# Dev mode for sx_docs only (standalone, no DB)
# Bind-mounted source + auto-reload on externalnet
# Browse to sx.rose-ash.com
#
# Usage:
# ./dev-sx.sh # Start sx_docs dev
# ./dev-sx.sh down # Stop
# ./dev-sx.sh logs # Tail logs
# ./dev-sx.sh --build # Rebuild image then start
COMPOSE="docker compose -p sx-dev -f docker-compose.dev-sx.yml"
case "${1:-up}" in
down)
$COMPOSE down
;;
logs)
$COMPOSE logs -f sx_docs
;;
*)
BUILD_FLAG=""
if [[ "${1:-}" == "--build" ]]; then
BUILD_FLAG="--build"
fi
$COMPOSE up $BUILD_FLAG
;;
esac