fix(app) fix mock mode

This commit is contained in:
Josh Harvey 2014-08-09 11:10:06 -04:00
parent 142dbe7f8b
commit 7c81050c3c
2 changed files with 7 additions and 4 deletions

View file

@ -21,9 +21,10 @@ if (!argv.http) {
cert: fs.readFileSync(argv.cert)
};
options.mock = argv.mock;
}
options.mock = argv.mock;
var server = createServer(options);
server.listen(port, function () {
console.log('lamassu-server listening on port ' + port + ' ' + (argv.http ? '(http)' : '(https)'));

View file

@ -84,6 +84,8 @@ module.exports = function (options) {
};
}
if (options.mock) logger.info('In mock mode');
routes.init({
app: app,
lamassuConfig: config,