We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f28f2 commit 1d54788Copy full SHA for 1d54788
app.js
@@ -60,6 +60,7 @@ app.use(commentRoutes);
60
app.use(campgroundRoutes);
61
app.use(authRoutes);
62
63
-app.listen(3000, function () {
64
- console.log("Project works fine");
65
-});
+app.listen(3000 || process.env.PORT, () => {
+ console.log('YelpCamp server has started!!');
+});
66
+
package.json
@@ -5,7 +5,7 @@
5
"main": "app.js",
6
"scripts": {
7
"test": "echo \"Error: no test specified\" && exit 1",
8
- "start": "app.js"
+ "start": "node app.js"
9
},
10
"repository": {
11
"type": "git",
0 commit comments