Skip to content

Commit 1d54788

Browse files
committed
made a change
1 parent f8f28f2 commit 1d54788

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ app.use(commentRoutes);
6060
app.use(campgroundRoutes);
6161
app.use(authRoutes);
6262

63-
app.listen(3000, function () {
64-
console.log("Project works fine");
65-
});
63+
app.listen(3000 || process.env.PORT, () => {
64+
console.log('YelpCamp server has started!!');
65+
});
66+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "app.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "app.js"
8+
"start": "node app.js"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)