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 ef92407 commit 5761313
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/400-pulse/250-database-setup/300-railway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ The template consists of three [services](https://docs.railway.app/reference/ser
2. On the **pulse-starter** service, locate and click the **Configure** button. Within the **Environment variables** section, you'll find an option to include the `PULSE_API_KEY` environment variable. Keep the `PULSE_API_KEY` field blank for the time being. Once you've set up the database and obtained the database URL from the [Prisma Data Platform](https://console.prisma.io/), you can then add the `PULSE_API_KEY` to the **pulse-starter** service. With the empty field for the Pulse API key, click **Save Config**.
3. Click on the **Deploy** button.
3. 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.
4. Go to the [Platform Console](https://console.prisma.io/) and activate Pulse in a Platform environment. Next, use the `DATABASE_URL` acquired from earlier steps to generate a `PULSE_API_KEY`.
4. Go to the [Platform Console](https://console.prisma.io/) and select the project in which you want to active Pulse. If you don't have a project yet, create a new project via the **New project** button.
5. Navigate to the project's environment in which Pulse should be activated. If you just created a new project, the only available environment is the **Production** environment.
6. Click **Enable Pulse** on the environment's page.
7. Paste the `DATABASE_URL` that you acquired before into the **Database connection string** field. Then, finish the process by clicking **Enable Pulse**.
8. Pulse is now enabled in your project's environment. Click **Generate API key** to obtain the API key that you need in order to use Pulse in your TypeScript starter app.
9. Save the `PULSE_API_KEY` for later and click **I've securely stored my connection string**.
5. Click on the **pulse-starter** service.
> **Note**: You'll likely find that the build failed for the **pulse-starter** service. This is because the Prisma Pulse API key wasn't provided as the database wasn’t Prisma Pulse ready.
> Do not worry, this is to be expected and not a problem for the next steps.
Expand Down

0 comments on commit 5761313

Please sign in to comment.