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>
17 lines
712 B
PowerShell
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
|