@lazycatcloud/lzc-cli 1.2.16 → 1.2.17
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/app/lpk_devshell.js +6 -3
- package/package.json +1 -1
package/lib/app/lpk_devshell.js
CHANGED
|
@@ -217,7 +217,7 @@ export class AppDevShell {
|
|
|
217
217
|
|
|
218
218
|
// 添加 devshell 必要路由
|
|
219
219
|
routes.push(
|
|
220
|
-
"/__debug.bridge=exec://
|
|
220
|
+
"/__debug.bridge=exec://80,/lzcapp/pkg/content/devshell/init_debug_bridge.sh"
|
|
221
221
|
);
|
|
222
222
|
routes.push("/__isdevshell=file:///lzcapp/pkg/devshell");
|
|
223
223
|
|
|
@@ -244,14 +244,17 @@ export class AppDevShell {
|
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
// 在生成 manifest.yml 之前合并 lzc-build.yml devshell 字段的值
|
|
247
|
-
// 并加上 health_check
|
|
247
|
+
// 并加上 health_check 字段, 当处于 devshell 的情况时,禁用 health_check
|
|
248
|
+
// 避免应用永远处于 unhealth 导致状态卡在 starting
|
|
248
249
|
this.lpkBuild.onBeforeDumpYaml(async (manifest, options) => {
|
|
249
250
|
logger.debug("merge lzc-build.yml devshell services\n", options);
|
|
251
|
+
const userapp = this.isUserApp ? shellApi.uid + "." : "";
|
|
250
252
|
const devshell = {
|
|
251
253
|
application: {
|
|
252
254
|
devshell: options["devshell"],
|
|
253
255
|
health_check: {
|
|
254
|
-
test_url: `http
|
|
256
|
+
test_url: `http://${userapp}app.${manifest["package"]}.lzcapp/__isdevshell`,
|
|
257
|
+
disable: true,
|
|
255
258
|
},
|
|
256
259
|
},
|
|
257
260
|
};
|