From 95ff253ab4871de9b44212b41d6f802d0192f279 Mon Sep 17 00:00:00 2001 From: jc3 <jc3@jc3.aura> Date: Tue, 21 Jul 2020 17:47:57 -0700 Subject: [PATCH] added process.env.PORT --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index c326b04..9e9265e 100644 --- a/index.js +++ b/index.js @@ -88,8 +88,8 @@ app.get('/fruit', (req,res)=>{ res.json( parse_qs( qs_object, model ) ) }) -//const PORT = 3000 +const PORT = process.env.PORT || 3000 -app.listen(80, ()=>{ - console.log(`App listening on port: ${PORT}` -)}) \ No newline at end of file +app.listen(PORT, (err)=>{ + console.log("%c Server running", "color: green") +}) \ No newline at end of file -- GitLab