What
cubejs-cli deploy should ignore (not push) files at user-specified paths.
Why
This is motivated by the following use-case scenarios:
- Miscellaneous files in a dirty working directory
- Dev scripts and test code which are never used at runtime
How
A new command option --ignore will suffice.
cubejs-cli deploy --token=${CUBE_CLOUD_DEPLOY_TOKEN} --ignore "tests"
Alternatives Considered
- A workaround exists: habitually move deploy-shy files out of the project directory.
- It would be nice if the command also ignored all paths specified by
.gitignore. This is a bigger lift and may be considered a breaking change — build pipelines which deploy from a gitignored directory will no longer work.
- We could achieve this by introducing a
.cubeignore file or some other config file in the project directory. Also a bigger lift than adding an --ignore option. Should be a non-breaking addition.
What
cubejs-cli deployshould ignore (not push) files at user-specified paths.Why
This is motivated by the following use-case scenarios:
How
A new command option
--ignorewill suffice.Alternatives Considered
.gitignore. This is a bigger lift and may be considered a breaking change — build pipelines which deploy from a gitignored directory will no longer work..cubeignorefile or some other config file in the project directory. Also a bigger lift than adding an--ignoreoption. Should be a non-breaking addition.