* init path
()
| 22 | * init path |
| 23 | */ |
| 24 | initPath() { |
| 25 | think.ROOT_PATH = this.options.ROOT_PATH; |
| 26 | think.APP_PATH = this.options.APP_PATH; |
| 27 | think.RUNTIME_PATH = this.options.RUNTIME_PATH; |
| 28 | |
| 29 | // set env |
| 30 | if (this.options.env) { |
| 31 | think.app.env = this.options.env; |
| 32 | } |
| 33 | // set proxy |
| 34 | if (this.options.proxy) { |
| 35 | think.app.proxy = this.options.proxy; |
| 36 | } |
| 37 | } |
| 38 | /** |
| 39 | * load app data |
| 40 | */ |