-
Notifications
You must be signed in to change notification settings - Fork 0
Startup Callback
Ivaylo Ivanov edited this page Jan 16, 2016
·
5 revisions
Defined in Esrol
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, but this is not desirable.
app.js
'use strict';
let App = require('esrol-server-app');
let path = require('path');
new App(path.join(__dirname, 'app'), () => {
console.log ('Server(s) are listening and startup is finished.');
});