@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.
@@ -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 --usermap=:nobody --groupmap=*:nobody . ${dest}`,
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "files": [
6
6
  "template",