mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
17 lines
378 B
JavaScript
17 lines
378 B
JavaScript
var app = require('./app');
|
|
var logger = require('./lib/logger');
|
|
|
|
var server = app.listen(app.get('port'), function() {
|
|
logger.info('unleash started on ' + app.get('port'));
|
|
});
|
|
|
|
process.on('uncaughtException', function(err) {
|
|
logger.error('Uncaught Exception:', err.message);
|
|
logger.error(err.stack);
|
|
});
|
|
|
|
module.exports = {
|
|
app: app,
|
|
server: server
|
|
};
|