@live-change/cli 0.9.121 → 0.9.123
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/lib/starter.js +27 -1
- package/package.json +8 -8
package/lib/starter.js
CHANGED
|
@@ -44,7 +44,13 @@ let argsDefaults = {
|
|
|
44
44
|
ssrHost: process.env.SSR_SERVER_HOST || '0.0.0.0',
|
|
45
45
|
ssrPort: process.env.SSR_SERVER_PORT || 8001,
|
|
46
46
|
|
|
47
|
-
sessionCookieDomain: process.env.SESSION_COOKIE_DOMAIN
|
|
47
|
+
sessionCookieDomain: process.env.SESSION_COOKIE_DOMAIN,
|
|
48
|
+
|
|
49
|
+
// Context pool settings
|
|
50
|
+
contextPoolSize: process.env.CONTEXT_POOL_SIZE || 2,
|
|
51
|
+
maxQueueSize: process.env.MAX_QUEUE_SIZE || 20,
|
|
52
|
+
renderTimeout: process.env.RENDER_TIMEOUT || 10000,
|
|
53
|
+
contextMaxUses: process.env.CONTEXT_MAX_USES || 128
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
export function startOptions(yargs) {
|
|
@@ -155,6 +161,26 @@ export function ssrServerOptions(yargs) {
|
|
|
155
161
|
type: 'string',
|
|
156
162
|
default: argsDefaults.sessionCookieDomain
|
|
157
163
|
})
|
|
164
|
+
yargs.option('contextPoolSize', {
|
|
165
|
+
describe: 'size of render context pool',
|
|
166
|
+
type: 'number',
|
|
167
|
+
default: argsDefaults.contextPoolSize
|
|
168
|
+
})
|
|
169
|
+
yargs.option('maxQueueSize', {
|
|
170
|
+
describe: 'maximum size of render queue',
|
|
171
|
+
type: 'number',
|
|
172
|
+
default: argsDefaults.maxQueueSize
|
|
173
|
+
})
|
|
174
|
+
yargs.option('renderTimeout', {
|
|
175
|
+
describe: 'render timeout in milliseconds',
|
|
176
|
+
type: 'number',
|
|
177
|
+
default: argsDefaults.renderTimeout
|
|
178
|
+
})
|
|
179
|
+
yargs.option('contextMaxUses', {
|
|
180
|
+
describe: 'maximum uses per context before replacement',
|
|
181
|
+
type: 'number',
|
|
182
|
+
default: argsDefaults.contextMaxUses
|
|
183
|
+
})
|
|
158
184
|
}
|
|
159
185
|
|
|
160
186
|
let globalServicesConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.123",
|
|
4
4
|
"description": "Live Change Framework - command line interface",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@live-change/dao": "^0.9.
|
|
29
|
-
"@live-change/dao-sockjs": "^0.9.
|
|
30
|
-
"@live-change/dao-websocket": "^0.9.
|
|
31
|
-
"@live-change/db-server": "^0.9.
|
|
32
|
-
"@live-change/framework": "^0.9.
|
|
33
|
-
"@live-change/server": "^0.9.
|
|
28
|
+
"@live-change/dao": "^0.9.123",
|
|
29
|
+
"@live-change/dao-sockjs": "^0.9.123",
|
|
30
|
+
"@live-change/dao-websocket": "^0.9.123",
|
|
31
|
+
"@live-change/db-server": "^0.9.123",
|
|
32
|
+
"@live-change/framework": "^0.9.123",
|
|
33
|
+
"@live-change/server": "^0.9.123",
|
|
34
34
|
"dotenv": "^17.2.1",
|
|
35
35
|
"express": "^4.18.2",
|
|
36
36
|
"http-proxy-middleware": "2.0.6",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"websocket": "^1.0.34",
|
|
41
41
|
"yargs": "^17.7.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "302f2ca92788cd4e3414fc9a5815263a3f063f3e"
|
|
44
44
|
}
|