Hosting
Deploy your AbsoluteJS application to popular hosting platforms with minimal configuration.
Fly.io
Global edge deployment with easy scaling
Railway
Auto-detected Bun projects with zero config
Render
Simple YAML-based deployment configuration
#Fly.io
Fly.io deploys your app to edge servers worldwide. Create a fly.toml configuration file:
TOML
# fly.toml
app = "my-absolutejs-app"
primary_region = "iad"
[build]
builder = "heroku/buildpacks:20"
[env]
PORT = "3000"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = trueDeploy with the Fly CLI:
BASH
# Install flyctl
curl -L https://fly.io/install.sh | sh
# Login and create app
fly auth login
fly launch
# Deploy
fly deploy
# Set secrets
fly secrets set DATABASE_URL="postgresql://..."#Railway
Railway auto-detects Bun projects and handles deployment automatically. Just connect your GitHub repository. Optionally add a railway.json for custom configuration:
JSON
# Railway auto-detects Bun projects
# Just connect your GitHub repo and Railway handles the rest
# railway.json (optional)
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "bun run src/backend/server.ts --host",
"healthcheckPath": "/health"
}
}#Render
Render uses a render.yaml blueprint for deployment configuration:
YAML
# render.yaml
services:
- type: web
name: my-absolutejs-app
env: node
buildCommand: bun install && bun run build
startCommand: bun run src/backend/server.ts --host
envVars:
- key: DATABASE_URL
sync: false