2014-02-05 00:27:40 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-02-12 03:15:34 +04:00
|
|
|
const config = require('../lib/config').root();
|
2014-02-05 00:27:40 +04:00
|
|
|
const logger = require('../lib/logging').getLogger('fxa.bin.server');
|
2014-02-06 01:57:06 +04:00
|
|
|
const server = require('../lib/server').create();
|
2014-02-05 00:27:40 +04:00
|
|
|
|
2014-05-12 22:38:45 +04:00
|
|
|
logger.debug('Starting with config: %:2j', config);
|
2014-02-05 00:27:40 +04:00
|
|
|
server.start(function() {
|
2014-02-06 01:57:06 +04:00
|
|
|
logger.info('Server started at:', server.info.uri);
|
2014-02-05 00:27:40 +04:00
|
|
|
});
|