Skip to content

Commit

Permalink
first push to heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangrunest committed May 29, 2019
1 parent 90f3654 commit f480245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ app.use(express.json());
// Make public a static folder
app.use(express.static("public"));

const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost/craigscraper'

// Connect to the Mongo DB
mongoose.connect("mongodb://localhost/unit18Populater", { useNewUrlParser: true });
mongoose.connect(MONGODB_URI, { useNewUrlParser: true });

// Routes

Expand Down

0 comments on commit f480245

Please sign in to comment.