File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ var ejsLint = require('ejs-lint');
19
19
20
20
21
21
// Connect mongoose
22
- mongoose . connect ( "mongodb+srv://Mehul:[email protected] /test?retryWrites=true&w=majority" , { useNewUrlParser :
true , useUnifiedTopology :
true } ) ;
22
+ mongoose . connect ( "mongodb+srv://Mehul:[email protected] /test?retryWrites=true&w=majority" ,
23
+ { useNewUrlParser : true , useUnifiedTopology : true } ) ;
23
24
24
25
app . use ( bodyParser . urlencoded ( { extended : true } ) ) ;
25
26
app . use ( express . static ( __dirname + "/public" ) ) ;
@@ -60,7 +61,8 @@ app.use(commentRoutes);
60
61
app . use ( campgroundRoutes ) ;
61
62
app . use ( authRoutes ) ;
62
63
63
- app . listen ( 3000 || process . env . PORT , ( ) => {
64
- console . log ( 'YelpCamp server has started!!' ) ;
64
+ var port = process . env . PORT || 3000 ;
65
+ app . listen ( port , function ( ) {
66
+ console . log ( "Server Has Started!" ) ;
65
67
} ) ;
66
68
You can’t perform that action at this time.
0 commit comments