-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment Guide
Deploying WordSeek to a production environment is straightforward. This guide covers popular cloud platforms and Docker-based deployments.
Railway is the easiest platform for WordSeek as it handles Bun, Postgres, and Redis natively.
- Click the Deploy to Railway button in the README.
- Fill in your
BOT_TOKENandADMIN_USERS. - Railway will automatically provision the database and cache.
- Create a Web Service on Render.
- Link your GitHub repository.
- Use the following build and start commands:
-
Build Command:
bun install -
Start Command:
bun run start
-
Build Command:
- Set
WEB_SERVICE=truein environment variables to enable health checks. - Create separate PostgreSQL and Redis instances on Render and link their URLs.
- Use the Heroku Button or the Heroku CLI.
- Add the Heroku Postgres and Heroku Data for Redis add-ons.
- The
Procfileis already included in the repository.
A docker-compose.yml file is provided for quick setup:
- Edit the
env_fileor set variables directly indocker-compose.yml. - Run the stack:
docker-compose up -d
If you are running on a raw VPS without Docker:
- Install PM2:
npm install pm2 -g - Start the app:
pm2 start src/index.ts --interpreter bun --name wordseek
▸ NODE_ENV: Always set to production for better performance and logging.
▸ TIME_ZONE: Set this to your local timezone (e.g., Asia/Kolkata) to ensure daily challenges reset at the correct time for your users.
▸ Health Checks: If using a platform that requires a port to be open (like Render), set WEB_SERVICE=true.
Next: Learn how to manage your bot and groups in Admin & Moderation.
WordSeek Project — Engineered for performance and community fun.