Skip to content

Commit bac60c2

Browse files
committed
add mlab
1 parent 99c4a65 commit bac60c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ var commentRoutes = require("./routes/comments"),
1919

2020
app.use(methodOverride("_method"));
2121
app.use(express.static(__dirname + "/public"));
22-
mongoose.connect("mongodb://localhost/YelpCamp");
22+
23+
// mongoose.connect("mongodb://localhost/YelpCamp");
24+
mongoose.connect("mongodb://alex:alex@ds125555.mlab.com:25555/yelpcampgrounds");
25+
2326
app.set("view engine","ejs");
2427
app.use(flash());
2528
app.use(bodyParser.urlencoded({extended: true}));

0 commit comments

Comments
 (0)