summaryrefslogtreecommitdiffstats
path: root/server/bin/www
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/www')
-rwxr-xr-xserver/bin/www6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/bin/www b/server/bin/www
index 512fe54..3618506 100755
--- a/server/bin/www
+++ b/server/bin/www
@@ -10,11 +10,15 @@ var debug = require('debug')('bas:server')
var https = require('https')
var fs = require('fs')
+/* global __appdir */
+var path = require('path')
+var config = require(path.join(__appdir, 'config', 'config')).https
+
/**
* Get port from environment and store in Express.
*/
-var port = normalizePort(process.env.PORT || '3000')
+var port = normalizePort(config.port || process.env.PORT || '3000')
app.set('port', port)
/**