MCPcopy
hub / github.com/thinkjs/thinkjs / initPath

Method initPath

lib/loader.js:24–37  ·  view source on GitHub ↗

* init path

()

Source from the content-addressed store, hash-verified

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 */

Callers 2

loadAllMethod · 0.80
loader.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected