Skip to content

Commit cc48f1f

Browse files
committed
tweaks
1 parent 2184e12 commit cc48f1f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/content/3/en/part3b.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,16 @@ If you decide to use [Fly.io](https://fly.io/) begin by installing their flyctl
110110

111111
By default everyone gets two free virtual machines that can be used for running two apps at the same time.
112112

113-
Note that the Fly.io instructions have only been added to this course on the 28th of August 2022. If you run into problems, please ask for help on Discord! If your build keeps failing due to unhealthy checks, try changing your port from 3001 to 8080.
114-
Don't forget to add your `cors` package to `dependencies` in `package.json` and you might need to remove the `morgan` code from the server application.
113+
Note that the Fly.io instructions have only been added to this course on the 28th of August 2022. If you run into problems, please ask for help on Discord! If your build keeps failing due to unhealthy checks, make sure that you have changed the bottom of the <i>index.js</i> file like so:
114+
115+
```js
116+
const PORT = process.env.PORT || 3001 // highlight-line
117+
app.listen(PORT, () => {
118+
console.log(`Server running on port ${PORT}`)
119+
})
120+
```
121+
122+
Don't forget to add your _cors_ package to _dependencies_ in _package.json_ and you might need to remove the _morgan_ code from the server application.
115123

116124
Start by [authenticating](https://fly.io/docs/hands-on/sign-in/) via command line with the command
117125

0 commit comments

Comments
 (0)