Commit be07ef10a24c19ecee5f1f53edc4a461f90215e9
1 parent
9378de0d
Port par défaut configurable
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
server.js
@@ -9,7 +9,8 @@ var cookieParser = require('cookie-parser'); | @@ -9,7 +9,8 @@ var cookieParser = require('cookie-parser'); | ||
9 | 9 | ||
10 | // Application ================================================================ | 10 | // Application ================================================================ |
11 | 11 | ||
12 | -var port = process.env.PORT || 8080; | 12 | +var config = require('./config/config.js'); |
13 | +var port = process.env.PORT || config.port; | ||
13 | 14 | ||
14 | // Connection à la BDD | 15 | // Connection à la BDD |
15 | var db = require('./config/db'); | 16 | var db = require('./config/db'); |