Skip to content

Commit a770783

Browse files
authored
Merge pull request #2687 from kasboi/patch-1
Update part3c.md
2 parents f26907b + 5f8545f commit a770783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/3/en/part3c.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ It's important that <i>dotenv</i> gets imported before the <i>note</i> model is
549549

550550
### Important note to Fly.io users
551551

552-
Because GitHub is not used with Fly.io, also the file .env gets to the Fly.io servers when the app is deployed. Because of this also the env variables defined in the file will be available there.
552+
Because GitHub is not used with Fly.io, the file .env also gets to the Fly.io servers when the app is deployed. Because of this, the env variables defined in the file will be available there.
553553

554-
However, a [better option](https://community.fly.io/t/clarification-on-environment-variables/6309) is to prevent .env from being copied to Fly.io by creating to the project root the file _.dockerignore_, with the following contents
554+
However, a [better option](https://community.fly.io/t/clarification-on-environment-variables/6309) is to prevent .env from being copied to Fly.io by creating in the project root the file _.dockerignore_, with the following contents
555555

556556
```bash
557557
.env
@@ -563,7 +563,7 @@ and set the env value from the command line with the command:
563563
fly secrets set MONGODB_URI='mongodb+srv://fullstack:<password>@cluster0.o1opl.mongodb.net/noteApp?retryWrites=true&w=majority'
564564
```
565565

566-
Since also the PORT is defined in our .env it is actually essential to ignore the file in Fly.io since otherways the app starts in the wrong port.
566+
Since the PORT also is defined in our .env it is actually essential to ignore the file in Fly.io since otherwise the app starts in the wrong port.
567567

568568
When using Render, the database url is given by defining the proper env in the dashboard:
569569

0 commit comments

Comments
 (0)