Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -15,6 +15,7 @@ app.get('/api/courses',(req,res) => { | ... | @@ -15,6 +15,7 @@ app.get('/api/courses',(req,res) => { |
| 15 | res.send([1,2,3]); | 15 | res.send([1,2,3]); |
| 16 | }); | 16 | }); |
| 17 | 17 | ||
| 18 | -app.listen(3000, ()=> console.log("Listening on port 3000")); | 18 | +// PORT |
| 19 | - | 19 | +const port = process.env.PORT || 3000; |
| 20 | 20 | ||
| 21 | +app.listen(port,()=> console.log(`Listening on port ${port}...`)); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment