shipitjs/shipit

ignores in config not work

开放

#239 创建于 2019年6月27日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (194 个派生)batch import
help wanted

仓库指标

星标
 (5,331 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I want to ignore some directories once the rsync is launched to the remote but it doesn't work. My "doc" directory is still present

module.exports = shipit => {
  require("shipit-deploy")(shipit);

  const cakeShared = require("./shared/cake");

  shipit.initConfig({
    default: {
      servers: "...",
      repositoryUrl: "git@github.com:.../...",
      shallowClone: false,
      keepReleases: 3,
      deleteOnRollback: false,
      ignores: [
        "doc"
      ],
    },
    preprod: {
      deployTo: "/.../preprod",
      branch: "develop",
      workspace: "/tmp/app-develop"
    },
    production: {
      deployTo: "/.../production",
      branch: "master",
      workspace: "/tmp/app-master"
    }
  });
};

贡献者指南