Browse Source

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

pull/6/head
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.lib('judger').connect();
if (!module.parent) {
await this.lib('judger').connect();
}
this.loadModules();
},
async connectDatabase() {

Loading…
Cancel
Save