Skip to content

Deployment Overview

This guide helps you choose the best deployment option for your needs.

Quick Comparison

PlatformFree TierEst. CostBest ForComplexity
VercelYes$0-20/moAPI + frontendLow
Railway$5 credit$5-20/moEasy full-stackLow
DockerN/AVariesReproducible buildsMedium
VPSNo$5-20/moFull controlHigh
Cloudflare WorkersYes$0-5/moEdge API onlyMedium

Architecture Reminder

Discord Forum API has two services:

┌─────────────────┐ ┌─────────────────┐
│ Bot │ │ API │
│ (discord.js) │ │ (Hono.js) │
│ │ │ │
│ Needs: Always │ │ Needs: HTTP │
│ running, │ │ server, │
│ WebSocket │ │ stateless OK │
└────────┬────────┘ └────────┬────────┘
│ │
└───────────┬───────────┘
┌──────▼──────┐
│ Database │
│ SQLite/Turso│
└─────────────┘

Platform Details

Vercel

Pros

  • Generous free tier
  • Automatic deployments from Git
  • Global CDN
  • Great for frontend + API

Cons

  • Can’t run the bot (serverless only)
  • Function timeout limits
  • Cold starts

Best for: Hosting your frontend website that consumes the API.

Not for: Running the Discord bot.


Railway

Pros

  • $5 free credit monthly
  • Supports long-running processes
  • Easy database hosting
  • One-click deploys

Cons

  • Free credit may not cover heavy usage
  • Requires credit card for unlimited
  • Limited free tier resources

Best for: Running both bot and API with minimal setup.


Docker

Pros

  • Consistent environments
  • Works anywhere
  • Easy local testing
  • Production-ready

Cons

  • Requires host (VPS, cloud)
  • More setup complexity
  • Managing containers

Best for: Production deployments with reproducibility needs.


VPS (DigitalOcean, Linode, AWS)

Pros

  • Full control
  • Predictable pricing
  • Any tech stack
  • No platform limits

Cons

  • Manual setup
  • Server maintenance
  • Security responsibility
  • No free tier

Best for: Production deployments needing full control.


Cloudflare Workers

Pros

  • Generous free tier
  • Global edge network
  • No cold starts
  • Turso compatible

Cons

  • Can’t run bot (Workers limitation)
  • Different runtime (not Node.js)
  • Size/memory limits

Best for: Edge-deployed API with Turso database.

Not for: Running the Discord bot.


Budget: Free

Bot: Fly.io (free tier - 3 VMs)
API: Cloudflare Workers (free tier)
DB: Turso (free tier - 500 DBs)
Frontend: Vercel/Cloudflare Pages (free)

Total cost: $0/month

Budget: Small ($5-15/month)

Bot + API: Railway (one service each)
DB: Railway PostgreSQL or Turso
Frontend: Vercel (free tier)

Total cost: $5-15/month

Production Ready

Bot: Dedicated VPS (DigitalOcean Droplet)
API: Railway or Vercel
DB: Turso (Scaler plan) or managed Postgres
Frontend: Vercel Pro
Monitoring: Sentry + Uptime Robot

Total cost: $20-50/month


Database Recommendations

ScenarioRecommended DBWhy
DevelopmentSQLite (local)Zero config
Small productionTurso freeEdge-ready, free
Medium productionTurso ScalerMore capacity
Large scalePostgreSQLProven, scalable

Checklist Before Deploying

  • Discord bot token secured
  • Environment variables configured
  • Database connection tested
  • CORS origins set correctly
  • Domain configured (if applicable)
  • SSL/HTTPS enabled
  • Monitoring/logging set up

Next Steps

Choose your deployment platform and follow the detailed guide: