Skip to content

Commit

Permalink
Merge pull request #54 from anikeshk/main
Browse files Browse the repository at this point in the history
Update Module13 Activity.md with clearer instructions
  • Loading branch information
abhutta0 authored Oct 23, 2024
2 parents c0a028c + e7711a6 commit b7c9584
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Activities/Module13 Activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ CLIENT_URL=http://localhost:3000
PORT=8000
```

Note: The .env file is not required for the Render.com setup. The above instructions are only if you want to connect the cloud MongoDB to your local (laptop) server.

### Setup your Server

1. Open the [Render Dashboard](https://dashboard.render.com/).
Expand Down Expand Up @@ -137,7 +139,7 @@ In case your server is is not responding to requests after a long period of inac
7. For Root Directory, type in "client".
8. For Build Command, type in "npm install && npm run build".
9. For Publish directory, type in "build".
10. In the Environment Variables section, add a variable called `REACT_APP_SERVER_URL`. For the value, add the server URL from step 5 above.
10. In the Environment Variables section, add a variable called `REACT_APP_SERVER_URL`. For the value, add the server URL from **Setup your Server** Step 5.
11. Click "Deploy Static Site".
12. Once the site is deployed, copy the client URL. As before, you can find this in purple near the top of the "Logs" page.
13. Open the [Render Dashboard](https://dashboard.render.com/) again. Choose the project you have created, and go back to service called "Web Service".
Expand Down

0 comments on commit b7c9584

Please sign in to comment.