Files
market/docker-entrypoint.sh
zeekay 661a6a28d5 rebrand: Bot Hub → Hanzo Market, white-label via @luxfi/brand schema
- Repo transferred hanzobot/hub → hanzoai/market (matches owned hanzo.market domain)
- npm package: bothub → @hanzoai/market, packages/bothub → packages/market
- bothub-schema → @hanzoai/market-schema
- CLI binary: bothub → market
- Brand: Bot Hub → Hanzo Market across ~95 user-facing surfaces (README, docs, k8s,
  Dockerfile, public/manifest.json, OG image, CLI banner, site config, theme)
- Brand-neutral white-label: src/brand/ owns BrandConfig + BrandTheme + loader,
  public/brands/<id>.json presets for hanzo, zoo, lux, pars, liquidity, generic
- BRAND_ID env at build picks default; ConfigMap-mounted brand.json overrides at runtime
- Legacy paths retained for compat: ~/.bothub, .bothubignore, /.well-known/bothub.json,
  bothub-theme localStorage key, LEGACY_HOSTS for hub.hanzo.bot/clawhub.ai
- Fixed broken sed-replace artifacts in packages/market/src/cli/botConfig.test.ts
- Drops Clawd/OpenClaw dead brand surface, keeps Clawdis* schema types and
  clawd skill directory paths (backward compat for installed bot products)
2026-05-29 13:46:09 -07:00

36 lines
882 B
Bash

#!/bin/sh
set -e
echo "Hanzo Market starting..."
# Start Hanzo Base (serves admin UI + API on :8090)
echo "Starting Base on port ${BASE_PORT:-8090}..."
base serve \
--http "0.0.0.0:${BASE_PORT:-8090}" \
--migrationsDir /app/hz_migrations \
--automigrate \
--dev="${BASE_DEV:-false}" &
BASE_PID=$!
# Wait for Base to be ready
sleep 2
# Start API server (Hono, talks to Base via SDK)
echo "Starting API server on port ${PORT:-3001}..."
BASE_URL="http://127.0.0.1:${BASE_PORT:-8090}" \
PORT=${PORT:-3001} bun run /app/api/dist/index.js &
API_PID=$!
# Start web server (Nitro reads PORT for its listen port)
echo "Starting web server on port ${WEB_PORT:-3000}..."
PORT=${WEB_PORT:-3000} bun run /app/.output/server/index.mjs &
WEB_PID=$!
# Wait for any child to exit
wait
EXIT_CODE=$?
# Kill remaining
kill $BASE_PID $API_PID $WEB_PID 2>/dev/null || true
exit $EXIT_CODE