Commit ddc01303 authored by Jan Grewe's avatar Jan Grewe

make HTTP port configurable via config.json

parent 2efd795c
var config = require('./config.json');
var pathPhotos = config.pathPhotos;
......
#!/usr/bin/env node
var config = require('../config.json');
var debug = require('debug')('foo');
var app = require('../app');
app.set('port', process.env.PORT || 3000);
app.set('port', config.httpPort || 3000);
var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
console.log("Express server listening on port " + app.get('port'));
});
......@@ -3,4 +3,5 @@
"previewWidth" : 1920,
"previewHeight" : 1080,
"broadcastAddr" : "192.168.0.255"
"httpPort" : 3080
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment