-
Notifications
You must be signed in to change notification settings - Fork 0
Startup Callback
Ivaylo Ivanov edited this page Dec 28, 2015
·
5 revisions
Esrol will call the callback (if passed), when all components are included, initializers are resolved and enabled servers are listening. You can execute custom code from there, if you need.
'use strict';
let App = require('esrol-server-app');
let path = require('path');
new App(path.join(__dirname, 'app'), () => {
console.log ('Startup is finished.');
});