fix(app) fix mock mode
This commit is contained in:
parent
142dbe7f8b
commit
7c81050c3c
2 changed files with 7 additions and 4 deletions
|
|
@ -21,9 +21,10 @@ if (!argv.http) {
|
||||||
cert: fs.readFileSync(argv.cert)
|
cert: fs.readFileSync(argv.cert)
|
||||||
};
|
};
|
||||||
|
|
||||||
options.mock = argv.mock;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options.mock = argv.mock;
|
||||||
|
|
||||||
var server = createServer(options);
|
var server = createServer(options);
|
||||||
server.listen(port, function () {
|
server.listen(port, function () {
|
||||||
console.log('lamassu-server listening on port ' + port + ' ' + (argv.http ? '(http)' : '(https)'));
|
console.log('lamassu-server listening on port ' + port + ' ' + (argv.http ? '(http)' : '(https)'));
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,8 @@ module.exports = function (options) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.mock) logger.info('In mock mode');
|
||||||
|
|
||||||
routes.init({
|
routes.init({
|
||||||
app: app,
|
app: app,
|
||||||
lamassuConfig: config,
|
lamassuConfig: config,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue