Skip to content

Commit

Permalink
Prueba node_env 3
Browse files Browse the repository at this point in the history
  • Loading branch information
arisshepard committed Nov 17, 2020
1 parent 49d5b72 commit c83bd01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'dev';
// Base de datos
// ===========================
let urlDB;
console.log('El dato: ', process.env.NODE_ENV);
if (process.env.NODE_ENV === 'dev') {
urlDB = 'mongodb://localhost:27017/cafe';
} else {
urlDB =
'mongodb+srv://khalaharia:qpiiKkY57yyuEC5k@cluster0.rmwsw.mongodb.net/cafe';
}

console.log('La URL seleccionada: ', urlDB);

process.env.URLDB = urlDB;

0 comments on commit c83bd01

Please sign in to comment.