From 12cc99970eedbea68c7cd132758dfd8cdf8203fc Mon Sep 17 00:00:00 2001 From: Antonio Pardo Date: Mon, 29 Aug 2016 20:00:56 +0200 Subject: [PATCH] =?UTF-8?q?Cambiar=20la=20definici=C3=B3n=20de=20la=20conf?= =?UTF-8?q?iguraci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cambiar la definición de la configuración por variables de entorno para hacer una aplicación twelve-factor compatible. --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index ee73326..fe847a7 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,7 @@ module.exports = { - 'secret': 'secretfortoken', - 'database': 'mongodb://localhost/comunalcar', + 'secret': process.env.SECRET, + 'database': process.env.MONGO_DSN, "port" : process.env.PORT || 3000 };