wtree Cloud

Watch paths

Deploy only when files matching your glob patterns change, for monorepos and apps with docs or assets in the same repository.

A push triggers a deployment only if it changes a file that matches one of your watch paths. Applications and Compose stacks both support them.

Before you start

  • GitHub, GitLab, Bitbucket or Gitea as the source. With the Git source, the repository must be hosted on one of these.
  • On GitHub, nothing else is needed. On the others, set up auto deploy first.

Add paths

The field takes a list of patterns, so you can watch several locations. For this layout:

my-app/
├── src/
│   └── index.js
└── public/
PatternTriggers when
src/*Any file in src/ changes
src/index.jsThat file changes

Pattern syntax

FeatureExampleMatches
Multiple globsone pattern per entryAny entry
Globstar**Any number of directories
Wildcard*.jsAll JavaScript files
Negation!a/*.jsExcludes JavaScript files in a
Negated name*!(b).jsJavaScript files except those ending in b
Extglob+(x|y), !(a|b)x or y one or more times; anything but a or b
POSIX classes[[:alpha:][:digit:]]Any letter or number
Brace rangesfoo/{1..5}.mdfoo/1.md to foo/5.md
Brace listsbar/{a,b,c}.jsbar/a.js, bar/b.js, bar/c.js
Character classesfoo-[1-5].jsfoo-1.js to foo-5.js
Alternationfoo/(abc|xyz).jsfoo/abc.js or foo/xyz.js

On this page