Skip to content

Commit

Permalink
Update content/400-pulse/250-database-setup/300-railway.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolas <[email protected]>
  • Loading branch information
ankur-arch and nikolasburk authored Mar 21, 2024
1 parent 811dfa3 commit 18de157
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/400-pulse/250-database-setup/300-railway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ The template consists of two [services](https://docs.railway.app/reference/servi

## Setup with template: "Prisma Pulse DB & App"

This section provides step-by-step instructions for setting up a Pulse starter project with a Pulse-ready PostgreSQL database using the Railway template called: [Prisma Pulse DB & App](https://railway.app/template/pulse-starter).

The template consists of three [services](https://docs.railway.app/reference/services):
- **Pulse-Starter**: A Typescript app with a basic setup for using Prisma Pulse. You can find the repo for it [on GitHub](https://github.com/prisma/pulse-starter/tree/main).
- **Postgres**: A PostgreSQL database that you'll be able to use with Prisma Pulse after going through the setup instructions.
- **restart-and-delete-me**: This service contains a [script](https://github.com/prisma/pulse-railway-pg-config/blob/main/config-db.ts) that's executed once and configures the PostgreSQL database to make it usable with Prisma Pulse. Once the script has been executed, the instructions will tell you to delete this service since it won't be needed any more.

1. Deploy the [template](https://railway.app/template/pulse-starter) on Railway.
2. To set up the database and make it Pulse-ready, complete the steps outlined in the [previous section](#setup-with-template-prisma-pulse-db-only), starting from **2.**, then follow the instructions below.
2. Click on the **pulse-starter** service.
Expand Down

0 comments on commit 18de157

Please sign in to comment.