Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

ignores in config not work #239

Open
ozee31 opened this issue Jun 27, 2019 · 3 comments
Open

ignores in config not work #239

ozee31 opened this issue Jun 27, 2019 · 3 comments

Comments

@ozee31
Copy link

ozee31 commented Jun 27, 2019

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: "[email protected]:.../...",
      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"
    }
  });
};
@utkarsh-dixit
Copy link

@ozee31 Is the "doc" folder inside the root project directory?

@ozee31
Copy link
Author

ozee31 commented Jul 9, 2019

@utkarsh-dixit yes workspace path is /tmp/app-develop/doc

@lukasoppermann
Copy link

lukasoppermann commented Oct 19, 2020

I am having the same issue. Did you find a solution for this?

Actually, the "issue" arose because shipit copies the folder on the server and only changes files that are changed (I guess?). However ignored files are not deleted. Once I deleted the files on the server from the current folder, the next update would not have the ignored files anymore.

This solved it for me. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants