diff --git a/index.js b/index.js index 64abb73..eb86824 100644 --- a/index.js +++ b/index.js @@ -22,5 +22,5 @@ app.get('/digitalRain.js', (req, res) => res.sendFile( __dirname + '/DigitalRain app.get('/Digital-Rain', (req, res) => res.sendFile( __dirname + '/DigitalRain/digitalRain.html')); app.listen(PORT, function(req, res) { - console.log('Server running'); + console.log(`Server running on port ${PORT}`); }); diff --git a/package.json b/package.json index 43982f9..20b2afd 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,13 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node index" + "start": "cross-env PORT=8080 node index" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.19.0", + "cross-env": "^7.0.2", "express": "^4.17.1", "nodemon": "^2.0.4", "opn": "^6.0.0"