-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
cp -n .env.example .env
docker compose up -d --buildPersistent state: host directory ./data → /app/data (products, pipeline DB, secrets, LLM logs).
./scripts/deploy.sh --public-url https://magic-ai-factory.comFor magic-ai-factory.com, ensure .env contains AIFACTORY_DEMO_READONLY=1 (append-only via fill_production_env.py when using --public-url, or set manually). See Public-Demo.
Uses scripts/fill_production_env.py to append only missing keys:
-
NEXT_PUBLIC_SITE_URL,AIFACTORY_CORS_ORIGINS -
AIFACTORY_FIREWALL_RULES_FERNET_KEY(when possible) -
AIFACTORY_SANDBOX_PREVIEW_NETWORK_ISOLATION=1default
Then docker compose build + up -d app.
Production: magic-ai-factory.com — nginx → Compose 9080.
Full notes: docs/production-domain.md
Factory + Hub + Mesh + Alien Monitor — always from repo root, fixed order:
./scripts/deploy_ecosystem.sh| Step | Script |
|---|---|
| Factory | ./scripts/deploy.sh |
| Hub | ./scripts/deploy_hub.sh |
| Mesh | ./scripts/deploy_mesh.sh |
| Monitor | ./scripts/deploy_alien_monitor.sh |
| Verify |
./scripts/verify_ecosystem_full.sh (included in deploy_ecosystem unless --skip-verify) |
Hub: do not redeploy with cd aimarket-hub && docker compose up — wrong build context; use deploy_hub.sh only. Details: docs/deploy-ecosystem.md.
Federation hub on https://modelmarket.dev (nginx :443 → Docker hub 127.0.0.1:9083).
Hub container (redeploy):
./scripts/deploy_hub.shTLS bootstrap:
sudo CERTBOT_EMAIL=you@example.com ./scripts/setup-modelmarket-ssl.shOr: docs/production-modelmarket-dev.md — certbot + certbot.timer auto-renewal.
DNS: modelmarket.dev and www → same host as the factory.
After DevOps stage: Vercel / Netlify / Cloudflare Pages tokens in .env and data/state/.../auto_publish.json.
Guide: docs/auto-publish.md
Railway / Fly / Cloud Run layout for full_software products:
docs/deploy-full-software-cloud.md
YAML fragments + admin overlay — see docs/configuration.md and wiki Documentation-Index.
curl -s http://127.0.0.1:9081/api/health
docker compose ps appEntrypoint watchdog restarts uvicorn on zombie/dead health failures.