From be07ef10a24c19ecee5f1f53edc4a461f90215e9 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Thu, 9 Apr 2015 19:07:19 +0200 Subject: [PATCH] Port par défaut configurable --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index f568ea2..cca124b 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,8 @@ var cookieParser = require('cookie-parser'); // Application ================================================================ -var port = process.env.PORT || 8080; +var config = require('./config/config.js'); +var port = process.env.PORT || config.port; // Connection à la BDD var db = require('./config/db'); -- libgit2 0.21.2