Deployment wrapper for AI Town on Cloudflare Workers + Containers.
| Command | Description |
|---|---|
npm run deploy |
Deploy to Cloudflare |
npm run dev |
Run locally |
npm run logs |
Tail worker logs |
npm run health |
Check health endpoint |
Client -> Cloudflare Edge -> Worker (fetch handler)
|
Container (node:20-bookworm)
|
Port 8080 -> AI Town
| Setting | Value |
|---|---|
| URL | https://aitown.megabyte.space |
| Image | node:20-bookworm |
| Port | 8080 |
| Postgres | no |
| Redis | no |
- Check worker status:
wrangler tail --name aitown - Verify DNS:
dig aitown.megabyte.space - Health check:
curl https://aitown.megabyte.space/__health - Container logs: Check Cloudflare dashboard -> Workers -> aitown