couchdb-update-views
Version:
Keep couchdb views up to date
23 lines (17 loc) • 1.06 kB
Markdown
Keep couchdb views up to date
[](https://travis-ci.org/nisaacson/couchdb-update-views)
[
Dependency tracking by [David](http://david-dm.org/)
https://david-dm.org/nisaacson/couchdb-update-views#badge-embed
# Installation
```bash
npm install -g couchdb-update-views
```
# Usage
To update your documents specify the path to a config file and a directory containing your design documents. Both paths can either by relative to your current working directory or full paths to the file on disk
```bash
couchdb-update-views --config ./sampleConfig.json --docsDir ./docs
```
Look at <project_root>/sampleConfig.json for an example of what your config json file should look like
Update code taken from here
[http://bravenewmethod.wordpress.com/2011/06/03/keeping-couchdb-design-docs-up-to-date-with-node-js/](http://bravenewmethod.wordpress.com/2011/06/03/keeping-couchdb-design-docs-up-to-date-with-node-js/)