From 8146d4b6ab3c693479c215ad1a7a2b57828b1198 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 2 Dec 2022 10:58:29 -0600 Subject: [PATCH] Ch4: Deployment - Updating Environment variable section (#6970) * Ch4 - Updating Environment variable section Netlify has changed how Environment Variables are set. They are no longer nested inside Build & Deploy. * Ch4- Deployment Updating image to show new netlify UI --- docs/docs/tutorial/chapter4/deployment.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/docs/tutorial/chapter4/deployment.md b/docs/docs/tutorial/chapter4/deployment.md index 404e8297d675..fd273091f468 100644 --- a/docs/docs/tutorial/chapter4/deployment.md +++ b/docs/docs/tutorial/chapter4/deployment.md @@ -104,11 +104,11 @@ Therefore, **please follow the instructions below** to sync your GitHub (or othe Now just authorize Netlify to connect to your git hosting provider and find your repo. When the deploy settings come up you can leave everything as the defaults and click **Deploy site**. -Netlify will start building your app and it will eventually say "Site is live", but nothing will work. Why? We haven't told it where to find our database yet! +Netlify will start building your app and it will eventually say the deployment failed. Why? We haven't told it where to find our database yet! #### Environment Variables -Go back to the main site page and then to **Site settings** at the top, and then **Build & Deploy** > **Environment**. Click **Edit Variables** and this is where we'll paste the database connection URI we got from Railway (note the **Key** is "DATABASE_URL"). After pasting the value, append `?connection_limit=1` to the end. The URI will have the following format: `postgresql://:@/?connection_limit=1`. +Go back to the main site page and then to **Site settings** at the top, and then **Environment variables**. Click **Add a Variable** and this is where we'll paste the database connection URI we got from Railway (note the **Key** is "DATABASE_URL"). After pasting the value, append `?connection_limit=1` to the end. The URI will have the following format: `postgresql://:@/?connection_limit=1`. The default values for Scopes and Values can be left as is. Click **Create variable** to proceed. :::tip @@ -123,9 +123,7 @@ yarn rw g secret Copy that over to Netlify along with `DATABASE_URL`: -![Adding ENV var](https://user-images.githubusercontent.com/300/154520225-76dfa960-1d09-4544-92a4-2c7e58dc4e3f.png) - -Make sure to click the **Save** button. +![Adding ENV var](https://user-images.githubusercontent.com/2931245/204148740-f8aaa276-e9b1-4ffc-a842-7602a1e0111a.png) #### IT'S ALIVE