rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

Render is a cloud platform that lets you flexibly build, deploy, and scale your apps. It offers features like auto deploys from GitHub, a global CDN, private networks, automatic HTTPS setup, and managed PostgreSQL and Redis. Render supports Bun natively. You can deploy Bun apps as web services, background workers, cron jobs, and more.


As an example, let’s deploy an Express HTTP server to Render.

1

[

](#)

Step 1

Create a new GitHub repo named myapp. Git clone it locally.

git clone git@github.com:my-github-username/myapp.git
cd myapp

2

[

](#)

Step 2

Add the Express library.

bun add express

3

[

](#)

Step 3

Define a server with Express:

https://mintcdn.com/bun-1dd33a4e/JUhaF6Mf68z_zHyy/icons/typescript.svg?fit=max&auto=format&n=JUhaF6Mf68z_zHyy&q=85&s=7ac549adaea8d5487d8fbd58cc3ea35bapp.ts

import express from "express";

const app = express();
const port = process.env.PORT || 3001;

app.get("/", (req, res) => {
	res.send("Hello World!");
});

app.listen(port, () => {
	console.log(`Listening on port ${port}...`);
});

4

[

](#)

Step 4

Commit your changes and push to GitHub.

terminal

git add app.ts bun.lock package.json
git commit -m "Create simple Express app"
git push origin main

5

[

](#)

Step 5

In your Render Dashboard, click New > Web Service and connect your myapp repo.

6

[

](#)

Step 6

In the Render UI, provide the following values during web service creation:

Runtime

Node

Build Command

bun install

Start Command

bun app.ts

That’s it! Your web service will be live at its assigned onrender.com URL as soon as the build finishes. You can view the deploy logs for details. Refer to Render’s documentation for a complete overview of deploying on Render.

Was this page helpful?

Suggest editsRaise issue

[

Deploy a Bun application on Railway

Previous

](../railway/index.md)[

Deploy a Bun application on AWS Lambda

Next

](../aws-lambda/index.md)