|
|
@@ -21,6 +21,16 @@ class Main extends Appliaction {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ startEggCluster (options) {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ this.coreLogger.info('[ee-core:EeApp] [startEggCluster] op', options);
|
|
|
+ const startCluster = require('egg-cluster').startCluster;
|
|
|
+ startCluster(options, function(){
|
|
|
+ resolve('success');
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* before app close
|
|
|
*/
|
|
|
@@ -30,5 +40,7 @@ class Main extends Appliaction {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
new Main();
|
|
|
|