Skip to content

Instantly share code, notes, and snippets.

@muhqu
Created February 22, 2011 12:03
Show Gist options
  • Select an option

  • Save muhqu/838568 to your computer and use it in GitHub Desktop.

Select an option

Save muhqu/838568 to your computer and use it in GitHub Desktop.
#!/bin/bash
tee -a ~/couchjs-view.in \
| /usr/local/couchdb/bin/couchjs \
/usr/local/couchdb/share/couchdb/server/main.js \
| tee -a ~/couchjs-view.out
; add this to you etc/couchdb/local.ini
[query_servers]
javascript = ~/couchjs-view-server-tee.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment