From 99d279b7936fa6b2ad2ff3d7c794f427e1f6866f Mon Sep 17 00:00:00 2001 From: Ankur Datta Date: Fri, 22 Mar 2024 18:43:10 +0600 Subject: [PATCH] feat: further refinements --- content/400-pulse/250-database-setup/300-railway.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/400-pulse/250-database-setup/300-railway.mdx b/content/400-pulse/250-database-setup/300-railway.mdx index 86230dd792..40667aaf4a 100644 --- a/content/400-pulse/250-database-setup/300-railway.mdx +++ b/content/400-pulse/250-database-setup/300-railway.mdx @@ -41,7 +41,7 @@ The template consists of two [services](https://docs.railway.app/reference/servi > **Note**: > The `DATABASE_URL` can also be found by clicking on the **Postgres** Service and navigating to the **Variables** tab, then clicking the copy icon next to `DATABASE_URL` environment variable value. > ![](../images/railway-database-url.png) -6. Copy the `DATABASE_URL` connection string and save it for later. Then restart your Railway database: +6. Copy the `DATABASE_URL` connection string and save it for later. Then restart your Railway database for the changes to be reflected: 1. Click on the **Postgres** service that represents your deployed database. 2. Navigate to the **Deployments** tab. 3. Click on the three-dots menu on the latest deployment and click the **Restart** option. @@ -63,7 +63,7 @@ The template consists of three [services](https://docs.railway.app/reference/ser ### Instructions 1. Deploy the [template](https://railway.app/template/pulse-starter) on Railway. -2. You'll be navigated to a page prompting configuration for both the **restart-db-then-delete-me** and **pulse-starter** service. +2. You'll be navigated to a page prompting configuration for both the **restart-db-then-delete-me** and **pulse-starter** service: ![Configure Railway template](../images/railway-template-configure.png) 1. For the **restart-db-then-delete-me** service, click on the **Configure** button and then save the configuration by clicking on **Save Config**. 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**. @@ -127,7 +127,7 @@ To see an event in action, you need to make changes to the `User` table. You can SELECT pg_reload_conf(); ``` -2. Restart your database +2. You have to restart your database for the changes to be reflected. To restart your database using the Railway UI: 1. Click on your database. 2. Navigate to the **Deployments** tab. 3. Click on the three-dots menu on the latest deployment and click the **Restart** option.