basic format
gardener url
where url is the top level in the couchdb url space to look.
Examples:
-
Scan all design docs inside of all databases
gardener http://localhost:5984
-
Scan all design docs inside of the test database
gardener http://localhost:5984/test
-
Watch only one design doc named awesome in the test database
-
Exclude Filter. Scan all databases, except work, quarantine, and the design doc feeble in the inprogress db.
gardener http://localhost:5984 --exclude=work,quarantine,inprogress/_design/feeble
-
Include Filter. Only poll specified databases, core, awesome and cool, and the design doc hot in the maybe db.
gardener http://localhost:5984 --include=core,awesome,cool,maybe/_design/hot
-
Mix and match 1, dbs. Results in core and cool dbs being scanned.
gardener http://localhost:5984 --include=core,awesome,cool --exclude=test2,work,awesome
-
Mix and match 2. dbs and ddocs. Exclude always wins. In this case gardener has nothing to watch!
gardener http://localhost:5984 --include=code/_design/neat --exclude=code
-
Mix and match 3. dbs and ddocs. Exclude the sucky design doc form the code db
gardener http://localhost:5984 --include=code --exclude=code/_design/sucky
Adding the --dashboard-db tell gardener will watch the specified db in a changes style feed. It is assumed the documents in this database are install docs that are generated from garden app installer. The advantage of this appoach is that the installation progress can be given to a webui because progress is updated on the install doc.
-
Watch only the dashboard db using, following the changes feed. First style.
gardener http://localhost:5984/ --dashboard=dashboard --include=dashboard
-
Watch only the dashboard db using, following the changes feed. Second style.
gardener http://localhost:5984/dashboard --dashboard=dashboard
-
Scan all design docs inside of all databases, but for the dashboard db follow the changes feed.
gardener http://localhost:5984/ --dashboard=dashboard
The following combinations are errors, and gardener will fail to start rathere than leaving indeterminate results.
> gardener http://localhost:5984/mydb --exclude=otherdb
> gardener http://localhost:5984/mydb --include=otherdb
> gardener http://localhost:5984/mydb/_design/hot --exclude=otherdb
> gardener http://localhost:5984/mydb/_design/hot --include=otherdb