Commit a5576e1 1 parent 296cf3e commit a5576e1 Copy full SHA for a5576e1
File tree 2 files changed +0
-27
lines changed
packages/beidou-core/lib/core
2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,6 @@ class BeidouAgent extends egg.Agent {
24
24
get [ Symbol . for ( 'egg#loader' ) ] ( ) {
25
25
return AgentWorkerLoader ;
26
26
}
27
-
28
- /**
29
- * 将 app.config 保存到 debug/${type}_config.json
30
- */
31
- dumpConfig ( ) {
32
- const rundir = ( this . config && this . config . rundir ) || 'run' ;
33
- const configdir = path . join ( rundir , `${ this . type } _${ new Date ( ) . toString ( ) } _config.json` ) ;
34
- try {
35
- fs . existsSync ( rundir ) || fs . mkdirSync ( rundir ) ;
36
- fs . writeFileSync ( configdir , JSON . stringify ( {
37
- config : this . config ,
38
- plugins : this . plugins ,
39
- } , null , 2 ) ) ;
40
- } catch ( err ) {
41
- /* istanbul ignore next */
42
- this . logger . warn ( `duplicateConfig error: ${ err . message } ${ err . stack ? err . stack : '' } ` ) ;
43
- }
44
- }
45
27
}
46
28
47
29
module . exports = BeidouAgent ;
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
const egg = require ( 'egg' ) ;
3
- // const escapeRegExp = require('lodash/escapeRegExp');
4
3
const AppWorkerLoader = require ( '../loaders/app-worker-loader' ) ;
5
4
6
5
const DEPRECATE = Symbol ( 'BeidouApplication#deprecate' ) ;
@@ -36,14 +35,6 @@ class BeidouApplication extends egg.Application {
36
35
}
37
36
return this [ DEPRECATE ] ;
38
37
}
39
-
40
- /*
41
- * override dumpConfig of egg, do it inside agent
42
- * @private
43
- */
44
- dumpConfig ( ) {
45
-
46
- }
47
38
}
48
39
49
40
module . exports = BeidouApplication ;
You can’t perform that action at this time.
0 commit comments