egg/lib/loader/agent_worker_loader.js
Haoliang Gao 350d0f5aaf feat: [BREAKING_CHANGE] use egg-core (#44)
* feat: [BREAKING_CHANGE] use egg-core

* fix: miss app and config to publish

* deps: upgrade egg-rest

* deps: update using autod

* test: use supertest@2

* Release 0.1.0-beta.3

* feat: enable logrotater by default

* chore: add circleci

* refactor: rename logrotater => logrotator

* feat: remove log-reload event

* test: let examples pass test

* fix: remove more close event

* refactor: extract Symbol as a constant

* deps: upgrade egg-core

* Release 0.1.0-beta.4

* fix: use egg when customEgg is not specified
2016-08-18 15:42:20 +08:00

30 lines
536 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* AgentWorkerLoader 类,继承 BaseLoader实现整个应用的加载机制
*/
'use strict';
const EggLoader = require('egg-core').EggLoader;
/**
* Agent Worker 进程的 Loader继承 egg-loader
* @see https://github.com/eggjs/egg-loader
*/
class AgentWorkerLoader extends EggLoader {
/**
* loadPlugin first, then loadConfig
*/
loadConfig() {
super.loadPlugin();
super.loadConfig();
}
load() {
this.loadAgentExtend();
this.loadCustomAgent();
}
}
module.exports = AgentWorkerLoader;