Deploy Bun on any cloud.
Run a Bun server with zero-downtime releases and Postgres through Bun’s built-in SQL client, on the cloud you choose.
- Build
- Railpack (auto)
- Start
- bun run start
- Port
- $PORT, set by Beep
- Pre-deploy
- bun run db:migrate
- Health check
- /health
Step by step.
Connect a server
Create a Hetzner server from the dashboard, or connect one from AWS, Google Cloud, Scaleway, any VPS or your own hardware. Beep sets it up and locks it down, so your apps are reachable only through Beep.
Create a service from your repository
Pick the GitHub or GitLab repository and the branch to track. In a monorepo, set the root directory for this service; watch paths limit rebuilds to changes that touch it.
Let Beep build it
Beep detects Bun from bun.lock and installs your dependencies with Bun. You can override the install, build or start command on the service.
Start command bun run startListen on $PORT
Beep sets PORT for every service unless you set it yourself, and routes traffic from its edge to that port. Bind to 0.0.0.0 so the edge can reach the container.
server.ts Bun.serve({ port: Number(process.env.PORT) || 3000, hostname: "0.0.0.0", fetch: (req) => new Response("ok"), })Add a database
Add managed Postgres (16 to 18, with pgvector and PostGIS), Redis or Valkey to the project, then reference its connection string from your service. References resolve at deploy time.
db.ts import { SQL } from "bun" export const db = new SQL(process.env.DATABASE_URL!) // DATABASE_URL=${{ postgres.DATABASE_URL }}Run migrations before each release
Set a pre-deploy command. It runs before each release, so the schema is ready before the new version takes traffic.
Pre-deploy command bun run db:migrateSet a health check and deploy
Set the health check path to /health, then deploy. On GitHub, every push to the tracked branch deploys too; GitLab repositories deploy in one click from the dashboard. Traffic moves to the new version only once it passes, and you can roll back instantly, with no rebuild.
Add your domain
Every service starts with a URL on beepx.app. When it works, point a CNAME for your domain at Beep; the certificate is issued and renewed for you. Each GitHub pull request also gets its own preview environment, removed when it closes.
Bun tips.
Point db:migrate at your migration tool (Drizzle, Prisma or your own script) and set it as the pre-deploy command.
Bun’s built-in SQL client talks to Postgres directly, with no extra driver.
Run queue consumers as a separate worker service with its own start command.
Bun on Beep, answered.
Straight answers. Anything missing, ask us directly.
Do I need a Dockerfile to deploy Bun?
No. Beep detects Bun from bun.lock and installs your dependencies with Bun. If your project already has a Dockerfile, you can build with that instead.
Where does the Bun app run?
On servers you choose: AWS, Google Cloud, Hetzner, Scaleway, any VPS or your own hardware. Beep bills per server, so databases, workers and previews add nothing to the plan.
Can I SSH into the server?
No. Once Beep sets a server up, SSH is closed to the internet and only Beep’s encrypted private network can reach the server. To look inside a running service, open a shell in its container from the dashboard, next to its logs and metrics. Beep Cloud servers don’t run SSH at all.
Where to run it.
Other guides.
Your cloud, run like a platform.
Plans from $3 a month. One flat price per server, never per app, seat or bandwidth.
Early access · We’ll set up your workspace
Or talk to us →