diff --git a/connections/mongoConnect.js b/connections/mongoConnect.js index 4c8c967..b4006e0 100644 --- a/connections/mongoConnect.js +++ b/connections/mongoConnect.js @@ -4,7 +4,7 @@ const mongoose = require('mongoose'), dotenv.config() const connect = mongoose - .connect('mongodb://mongo:27017/blogmtv', { + .connect(process.env.DATABASEURL, { useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true,