Skip to content

Commit

Permalink
Variable de entorno MONGO
Browse files Browse the repository at this point in the history
  • Loading branch information
rjvelazco committed Nov 14, 2020
1 parent aa1892d commit 33c1159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let urlDB;
if (process.env.NODE_ENV == 'dev') {
urlDB = 'mongodb://localhost:27017/cafe'
} else {
urlDB = 'mongodb+srv://rjvelazco:oRh5xMmsedWVImwO@cluster0.u7v4j.mongodb.net/cafe'
urlDB = process.env.MONGO_URI;
}

process.env.URLDB = urlDB;

0 comments on commit 33c1159

Please sign in to comment.