@lazycatcloud/lzc-cli 1.2.7 → 1.2.8
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 +5 -1
- package/package.json +1 -1
package/lib/app/lpk_devshell.js
CHANGED
|
@@ -244,11 +244,15 @@ export class AppDevShell {
|
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
// 在生成 manifest.yml 之前合并 lzc-build.yml devshell 字段的值
|
|
247
|
+
// 并加上 health_check 字段
|
|
247
248
|
this.lpkBuild.onBeforeDumpYaml(async (manifest, options) => {
|
|
248
249
|
logger.debug("merge lzc-build.yml devshell services\n", options);
|
|
249
250
|
const devshell = {
|
|
250
251
|
application: {
|
|
251
252
|
devshell: options["devshell"],
|
|
253
|
+
health_check: {
|
|
254
|
+
test_url: `app.${manifest["package"]}.lzcapp/__isdevshell`,
|
|
255
|
+
},
|
|
252
256
|
},
|
|
253
257
|
};
|
|
254
258
|
return mergeYamlInMemory([manifest, devshell]);
|
|
@@ -427,7 +431,7 @@ class DevShell {
|
|
|
427
431
|
const dest = `root@${host}:/lzcapp/cache/devshell`;
|
|
428
432
|
try {
|
|
429
433
|
execSync(
|
|
430
|
-
`rsync ${rsyncDebug} --rsh='${rsh}' --recursive --relative --perms --update --filter=':- .gitignore' --ignore-errors
|
|
434
|
+
`rsync ${rsyncDebug} --rsh='${rsh}' --recursive --relative --perms --update --filter=':- .gitignore' --ignore-errors . ${dest}`,
|
|
431
435
|
{ stdio: ["ignore", "inherit", "inherit"] }
|
|
432
436
|
);
|
|
433
437
|
} catch (err) {
|