not-node 6.3.69 → 6.3.71
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/package.json +1 -1
- package/src/core/locales/en.json +1 -0
- package/src/core/locales/ru.json +1 -0
- package/src/init/lib/app.js +12 -2
- package/test/init/app.js +12 -0
package/package.json
CHANGED
package/src/core/locales/en.json
CHANGED
package/src/core/locales/ru.json
CHANGED
package/src/init/lib/app.js
CHANGED
|
@@ -24,10 +24,20 @@ module.exports = class InitApp {
|
|
|
24
24
|
master.setEnv("validationEnv", options.validationEnv);
|
|
25
25
|
master.setEnv("hostname", config.get("hostname"));
|
|
26
26
|
master.setEnv("server", `https://` + config.get("host"));
|
|
27
|
-
master.setEnv(
|
|
27
|
+
master.setEnv(
|
|
28
|
+
"appPath",
|
|
29
|
+
master.getAbsolutePath(config.get("path.app"))
|
|
30
|
+
);
|
|
31
|
+
master.setEnv(
|
|
32
|
+
"dbDumpsPath",
|
|
33
|
+
master.getAbsolutePath(config.get("path.dbDumps"))
|
|
34
|
+
);
|
|
35
|
+
master.setEnv(
|
|
36
|
+
"tmpPath",
|
|
37
|
+
master.getAbsolutePath(config.get("path.tmp"))
|
|
38
|
+
);
|
|
28
39
|
master.setEnv("name", master.getManifest().name);
|
|
29
40
|
master.setEnv("fullServerName", config.get("fullServerName"));
|
|
30
|
-
master.setEnv("dbDumpsPath", config.get("dbDumpsPath"));
|
|
31
41
|
master.setEnv(
|
|
32
42
|
"rolesPriority",
|
|
33
43
|
master.getManifest().targets.server.roles
|
package/test/init/app.js
CHANGED
|
@@ -35,6 +35,9 @@ module.exports = ({ expect }) => {
|
|
|
35
35
|
getMongoose() {
|
|
36
36
|
return fakeMongoose;
|
|
37
37
|
},
|
|
38
|
+
getAbsolutePath(val) {
|
|
39
|
+
return val;
|
|
40
|
+
},
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
await InitApp.createApp({
|
|
@@ -81,6 +84,9 @@ module.exports = ({ expect }) => {
|
|
|
81
84
|
getMongoose() {
|
|
82
85
|
return fakeMongoose;
|
|
83
86
|
},
|
|
87
|
+
getAbsolutePath(val) {
|
|
88
|
+
return val;
|
|
89
|
+
},
|
|
84
90
|
};
|
|
85
91
|
|
|
86
92
|
await InitApp.createApp({
|
|
@@ -132,6 +138,9 @@ module.exports = ({ expect }) => {
|
|
|
132
138
|
return fakeManifest;
|
|
133
139
|
},
|
|
134
140
|
setEnv() {},
|
|
141
|
+
getAbsolutePath(val) {
|
|
142
|
+
return val;
|
|
143
|
+
},
|
|
135
144
|
};
|
|
136
145
|
|
|
137
146
|
await InitApp.setAppEnvs({
|
|
@@ -406,6 +415,9 @@ module.exports = ({ expect }) => {
|
|
|
406
415
|
getManifest() {
|
|
407
416
|
return fakeManifest;
|
|
408
417
|
},
|
|
418
|
+
getAbsolutePath(val) {
|
|
419
|
+
return val;
|
|
420
|
+
},
|
|
409
421
|
};
|
|
410
422
|
try {
|
|
411
423
|
await new InitApp().run({
|