Skip to content

Commit

Permalink
feat: further refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-arch committed Mar 22, 2024
1 parent 586eeab commit 99d279b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/400-pulse/250-database-setup/300-railway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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**.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 99d279b

Please sign in to comment.