You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Justin Walgran <jw...@gmail.com> on 2009/08/01 19:04:33 UTC
Couchapp auto-push?
Is there a way to make Couchapp automatically push when one of the
files in the application directory changes? If it is not built into
Couchapp, is there a way to write a shell script that would watch a
directory and call 'couchapp push' when a file changes?
-Justin
Re: Couchapp auto-push?
Posted by Norbert Barlek <nb...@googlemail.com>.
http://www.jasondavies.com/blog/2008/11/25/edit-couchdb-attachments-directly-with-couchdb-fuse/
But there might be an easier way:
http://twitter.com/davisp/status/1174947466
"From your couchapp root: inotifywait -m -r --exclude "\.swp$" -e modify . |
xargs -n 1 -I {} echo "couchapp push . wbm-targets" | bash"
If you are on OS
X, you could try using FSEvents, but I found no tool comparable to
inotifywait, just this ruby app/lib:
http://github.com/ymendel/fsevents/tree/master
HTH,
NB
2009/8/1 Justin Walgran <jw...@gmail.com>
> Is there a way to make Couchapp automatically push when one of the
> files in the application directory changes? If it is not built into
> Couchapp, is there a way to write a shell script that would watch a
> directory and call 'couchapp push' when a file changes?
>
> -Justin
>
Re: Couchapp auto-push?
Posted by Vlad GURDIGA <gu...@gmail.com>.
Maybe instructing your IDE/editor to 'push' on file save would be a
more effort-efficient way?
On Sat, Aug 1, 2009 at 8:04 PM, Justin Walgran<jw...@gmail.com> wrote:
> Is there a way to make Couchapp automatically push when one of the
> files in the application directory changes? If it is not built into
> Couchapp, is there a way to write a shell script that would watch a
> directory and call 'couchapp push' when a file changes?
>
> -Justin
>