Browse Source

Allow load by require() and don't connect RMQ

master
Menci 6 years ago
parent
commit
82e672f9cd
  1. 4
      app.js

4
app.js

@ -67,7 +67,9 @@ global.syzoj = {
})()); })());
await this.connectDatabase(); await this.connectDatabase();
await this.lib('judger').connect(); if (!module.parent) {
await this.lib('judger').connect();
}
this.loadModules(); this.loadModules();
}, },
async connectDatabase() { async connectDatabase() {

Loading…
Cancel
Save