1
This commit is contained in:
parent
6db22e9245
commit
1792564a94
@ -9,12 +9,12 @@ process.on('unhandledRejection', (reason, promise) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
event.addListener(event.APP_INITIALIZED_EVENT, async () => {
|
event.addListener(event.APP_INITIALIZED_EVENT, async () => {
|
||||||
require('./metadata/factory').init();
|
await require('./metadata/factory').init();
|
||||||
require('./middlewares/factory').init();
|
await require('./middlewares/factory').init();
|
||||||
require('./controllers/factory').init();
|
await require('./controllers/factory').init();
|
||||||
require('./models/factory').init();
|
await require('./models/factory').init();
|
||||||
require('./services/factory').init();
|
await require('./services/factory').init();
|
||||||
require('./tasks/factory').init();
|
await require('./tasks/factory').init();
|
||||||
app.injectionSession(require('./session'));
|
app.injectionSession(require('./session'));
|
||||||
console.log(metaFactory.getWeb3BcSpiderConf()['listen_port']);
|
console.log(metaFactory.getWeb3BcSpiderConf()['listen_port']);
|
||||||
app.listen(metaFactory.getWeb3BcSpiderConf()['listen_port']);
|
app.listen(metaFactory.getWeb3BcSpiderConf()['listen_port']);
|
||||||
|
@ -5,7 +5,7 @@ function add(name) {
|
|||||||
controllers[name].init();
|
controllers[name].init();
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
async function init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.init = init;
|
exports.init = init;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function init() {
|
async function init() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function init() {
|
async function init() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ function add(clsNames, modName) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
async function init() {
|
||||||
add('BlockChain', 'blockchain');
|
add('BlockChain', 'blockchain');
|
||||||
add('EventProcess', 'event_process');
|
add('EventProcess', 'event_process');
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ function add(clsNames, modName) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
async function init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function create(name, session) {
|
function create(name, session) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user