diff --git a/index.js b/index.js index c326b04405976252cee229f2921714c774d31c8a..9e9265ea2642bdd957f8dfddaf5a49abad9e782d 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