Skip to main content
Multilingual TursoDB, MVCC & AI Agent database guides Read Engine Guide →
Turso Cloud Turso Cloud Embedded Replicas Platform Guides

Turso + Render

Deploy a JavaScript app using [Turso Cloud embedded replicas](/features/embedded-replicas) to [Render](https://render.com/).

Render banner

Prerequisites

Before you start, make sure you:

1. Retrieve database credentials

You will need an existing database to continue. If you don’t have one, create one.

Get the database URL:

turso db show --url <database-name>

Get the database authentication token:

turso db tokens create <database-name>

Assign credentials to the environment variables inside .env.

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
NOTE

You will want to store these as environment variables.

2. Get application code

Fork the following embedded replica project from GitHub locally:

NOTE

3. Create a web service

Create a new Render Web Service by clicking on the “New Web Service” button on the Web Services card inside you Render dashboard.

4. Connect to Git repository

  1. Select “build and deploy from a Git repository” and proceed to the next page.

  2. Click on “Connect” for your target project repository

5. Set project’s environment variables

On the web service configuration page, under “Advanced” add a secret file and fill it in with your database secret credentials:

Render secret credentials

6. Deploy project

Scroll to the bottom of the web service configuration page and click on “Create Web Service”.

Synced from official Turso documentation ( tursodatabase/turso-docs · MIT License) Official Docs ↗
Search
Press Esc to close · Powered by Pagefind