Skip to content

Commit

Permalink
Variable de entorno MONGO
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-i-silva committed Aug 6, 2020
1 parent 016ac6f commit 0cd58bb
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 @@ -22,7 +22,7 @@ if(process.env.NODE_ENV === 'dev'){
urlDB = 'mongodb://localhost:27017/cafe'

} else {
urlDB = 'mongodb+srv://martintodojunto:[email protected]/cafe'
urlDB = process.env.MONGO_URI // creamos la variable en consola con heroku para protegerla en GitHub => heroku config:set MONGO_URI="escribirurl"
}


Expand Down

0 comments on commit 0cd58bb

Please sign in to comment.