Deploy a Next.js 15 application powered by the Bun runtime to Railway.
After cloning the repository:
- Install dependencies:
bun install- Run the development server:
bun devMake sure you have the Railway CLI installed:
bun install -g @railway/cliLog into your Railway account:
railway loginAfter successfully authenticating, create a new project:
# Initialize project
railway init
# Deploy your application
railway up
# Generate public domain
railway domain- Go to Railway Dashboard
- Click "New Project"
- Select "Deploy from GitHub repo"
- Choose your repository
- Select your service
- Go to "Settings" tab
- Under "Networking", click "Generate Domain"
Your website is now live! Railway auto-deploys on every GitHub push.