fxa-profile-server/bin/worker.js

15 строки
534 B
JavaScript

/* 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/. */
// Only `require()` the newrelic module if explicity enabled.
// If required, modules will be instrumented.
require('../lib/newrelic')();
const logger = require('../lib/logging')('bin.worker');
const server = require('../lib/server/worker').create();
server.start(function() {
logger.info('listening', server.info.uri);
});