Skip to content

Commit 9740dd4

Browse files
committed
Upload all files
1 parent 2be276e commit 9740dd4

File tree

5,121 files changed

+617981
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,121 files changed

+617981
-5
lines changed

.DS_Store

8 KB
Binary file not shown.

.idea/.DS_Store

6 KB
Binary file not shown.

.idea/YelpCamp.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 458 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ var commentRoutes = require("./routes/comments"),
2020
app.use(methodOverride("_method"));
2121
app.use(express.static(__dirname + "/public"));
2222

23+
// var url = process.env.databaseURL || "mongodb://localhost/YelpCamp" ;
2324
// mongoose.connect("mongodb://localhost/YelpCamp");
24-
mongoose.connect("mongodb://alex:alex@ds125555.mlab.com:25555/yelpcampgrounds");
25+
// mongoose.connect("mongodb://alex:alex@ds125555.mlab.com:25555/yelpcampgrounds");
26+
mongoose.connect("mongodb://localhost/YelpCamp");
2527

2628
app.set("view engine","ejs");
2729
app.use(flash());
@@ -51,7 +53,11 @@ app.use("/", indexRoutes);
5153
app.use("/campgrounds", campgroundRoutes);
5254
app.use("/campgrounds/:id/comments",commentRoutes);
5355

54-
55-
app.listen(process.env.PORT, process.env.IP,function(){
56-
console.log("Server has started!!");
57-
});
56+
app.listen(3003, process.env.IP,function(){
57+
console.log("Server has started!!");
58+
console.log(process.env);
59+
});
60+
// app.listen(process.env.Port || 3000, process.env.IP,function(){
61+
// console.log("Server has started!!");
62+
// console.log(process.env);
63+
// });

node_modules/.DS_Store

26 KB
Binary file not shown.

node_modules/.bin/atob

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mime

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)