Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
change database uri
Browse files Browse the repository at this point in the history
  • Loading branch information
bigansh committed Jun 29, 2021
1 parent 1449307 commit 20951c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connections/mongoConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 20951c8

Please sign in to comment.