Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lincenying committed Sep 28, 2018
1 parent 2172554 commit a105cad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/mongoose.js
@@ -1,5 +1,8 @@
const mongoose = require('mongoose')
const mongoUrl = process.env.NODE_ENV === 'docker-development' ? 'dockerized_mongo' : 'localhost'
mongoose.connect(`mongodb://${mongoUrl}/mmfblog_v2`)
mongoose.connect(
`mongodb://${mongoUrl}/mmfblog_v2`,
{ useNewUrlParser: true }
)
mongoose.Promise = global.Promise
module.exports = mongoose

0 comments on commit a105cad

Please sign in to comment.