Skip to content

Commit e8ea768

Browse files
committed
heroku deploy
1 parent c787a6d commit e8ea768

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

server/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

server/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ app.get('/', (req, res) => {
55
res.send({ hi: 'there' });
66
});
77

8-
app.listen(5000);
8+
const PORT = process.env.PORT || 5000;
9+
app.listen(PORT);

server/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"engines": {
7+
"node": "8.1.1",
8+
"npm": "5.0.3"
9+
},
610
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
11+
"start": "node index.js"
812
},
913
"author": "",
1014
"license": "ISC",

0 commit comments

Comments
 (0)