Skip to content

Commit 0eeb36d

Browse files
authored
Merge pull request #11 from Ferie/heroku-deploy
Heroku deploy
2 parents 319de5a + 370db68 commit 0eeb36d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
"serve": "node server",
2929
"start": "node server.js"
3030
},
31-
"devDependencies": {
31+
"dependencies": {
32+
"classlist.js": "^1.1.20150312",
3233
"body-parser": "^1.17.1",
34+
"del": "^2.2.2",
3335
"dotenv": "^4.0.0",
34-
"express": "^4.15.2",
36+
"express": "^4.15.2"
37+
},
38+
"devDependencies": {
3539
"gulp": "^3.9.1",
3640
"gulp-concat": "^2.6.1",
3741
"gulp-jshint": "^2.0.4",
@@ -43,9 +47,5 @@
4347
"jshint": "^2.10.2",
4448
"jshint-stylish": "^2.2.1",
4549
"uglify-js": "^3.6.0"
46-
},
47-
"dependencies": {
48-
"classlist.js": "^1.1.20150312",
49-
"del": "^2.2.2"
5050
}
5151
}

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ localhost.get(/.*/, function (req, res) {
2323
res.sendFile(__dirname + mainFile);
2424
});
2525

26-
localhost.listen(localhostPort, function () {
27-
console.log("Start surfing at localhost:%d", localhostPort);
26+
localhost.listen(process.env.PORT || localhostPort, function () {
27+
console.log("Start surfing at localhost:%d", (process.env.PORT || localhostPort));
2828
});

0 commit comments

Comments
 (0)