Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrossEnv changes to make port env agnostic #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down