nomadro/scripts/dev-hub.ps1
Eric 1058eca8af Wire Hub API aliases, Next proxy, and .com admin cn lane for /hub.
Include hub Next API routes and admin module select so the China-only Hub ship can build and mount on nomadro.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-29 00:03:33 +08:00

17 lines
712 B
PowerShell

# Local nomadro-hub (:8025) — independent fork of social_main (:8020).
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
$Api = Join-Path $Root "apps\api"
Set-Location $Api
$env:HOST = "127.0.0.1"
$env:HUB_ENABLED = "true"
$env:CENTRIFUGO_ENABLED = "true"
$env:CENTRIFUGO_API_URL = "http://127.0.0.1:8008/api"
$env:CENTRIFUGO_API_KEY = "nomadro-local-centrifugo-api-key-dev-only"
$env:CENTRIFUGO_TOKEN_SECRET = "nomadro-local-centrifugo-token-hmac-dev-only"
$env:CENTRIFUGO_WS_URL = "ws://127.0.0.1:8008/connection/websocket"
Write-Host "[hub] http://127.0.0.1:8025/health centrifugo=$($env:CENTRIFUGO_ENABLED)"
python -m uvicorn hub_main:app --host 127.0.0.1 --port 8025 --reload