new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Bun · all subjects

deployment/railway

11 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Railway deployment overview and features

Railway is an infrastructure platform where you provision infrastructure, develop against it locally, then deploy to the cloud. It deploys from GitHub with zero configuration, handles SSL automatically, and provisions databases.

Railway deployment prerequisites

To deploy a Bun application on Railway, you need: a Bun application ready for deployment, a Railway account, Railway CLI for CLI deployment method, and a GitHub account for Dashboard deployment method.

Install Railway CLI with Bun

Install the Railway CLI globally using the command: bun install -g @railway/cli

Railway CLI login command

Log into your Railway account using the command: railway login

Railway project initialization command

After authenticating with railway login, initialize a new project using the command: railway init

Railway add PostgreSQL database and service commands

To add a PostgreSQL database and service, run these commands in order: railway add --database postgres (add PostgreSQL database first), then railway add --service bun-react-db --variables DATABASE_URL=${{Postgres.DATABASE_URL}} (add your application service).

Railway deploy and domain generation commands

After services are created and connected, deploy the application with railway up, then generate a public domain with railway domain to make the app publicly accessible.

Railway auto-deployment from GitHub

Railway automatically deploys on every GitHub push after the initial deployment is configured.

Railway default build configuration uses Nixpacks

By default, Railway uses Nixpacks to automatically detect and build Bun applications with zero configuration.

Railway Railpack builder for better Bun support

The Railpack application builder has better Bun support and always supports the latest version of Bun. Pre-configured templates use Railpack by default.

Enable Railpack in railway.json configuration

To enable Railpack in a custom project, add the following to your railway.json file: {"$schema": "https://railway.com/railway.schema.json", "build": {"builder": "RAILPACK"}}

Give your agent this brain