oox 0.3.0-beta12 → 0.3.0-beta13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/starter.js +6 -6
- package/package.json +1 -1
package/bin/starter.js
CHANGED
|
@@ -41,6 +41,10 @@ async function startup(env, entryFilename) {
|
|
|
41
41
|
path: entryFile.path.replace(/\\/g, '/'),
|
|
42
42
|
group: entryFile.group.replace(/\\/g, '/'),
|
|
43
43
|
};
|
|
44
|
+
// 模块配置
|
|
45
|
+
oox.modules.setConfig(oox.config);
|
|
46
|
+
oox.emit('app:configured');
|
|
47
|
+
const { http: { config: httpConfig }, socketio: { config: socketioConfig } } = oox.modules.builtins;
|
|
44
48
|
// 代理<服务间调用>
|
|
45
49
|
if (env.group) {
|
|
46
50
|
const excludes = [entryFile.name];
|
|
@@ -48,14 +52,10 @@ async function startup(env, entryFilename) {
|
|
|
48
52
|
excludes.push(...env.ignore);
|
|
49
53
|
(0, proxyer_1.proxyGroup)(entryFile.group, excludes);
|
|
50
54
|
}
|
|
51
|
-
// 加载服务
|
|
52
|
-
await loadEntry(entryFile.name, entryFile.path);
|
|
53
|
-
// 模块配置
|
|
54
|
-
oox.modules.setConfig(oox.config);
|
|
55
|
-
oox.emit('app:configured');
|
|
56
|
-
const { http: { config: httpConfig }, socketio: { config: socketioConfig } } = oox.modules.builtins;
|
|
57
55
|
// 服务启动
|
|
58
56
|
await oox.serve();
|
|
57
|
+
// 加载服务
|
|
58
|
+
await loadEntry(entryFile.name, entryFile.path);
|
|
59
59
|
oox.emit('app:served');
|
|
60
60
|
console.log();
|
|
61
61
|
console.log('Service', (0, chalk_1.bold) `${oox.config.name}`, 'running.');
|