I wrote node-couchapp and i don't even remember what those flags did. i have 
since changed the command line api.

couchapp push app.js http://localhost:5984/db

or

couchapp sync app.js http://localhost:5984/bd

if you do

npm install -g couchapp

the couchapp bin should be in your $PATH

-Mikeal

On Nov 7, 2011, at November 7, 20118:53 AM, john.tiger wrote:

> The node.couchapp.js module seems so much cleaner/simpler than the python 
> based couchapp tools but we are having trouble since there is not much 
> documentation or tutorials yet.
> 
> $node ./lib/bin.js -s testapp.js http://127.0.0.1:5984/testapp
> 
> this runs without error but no response message and nothing shows up in Futon
> 
> testapp.js
> var node_couchapp = require("./lib/node-couchapp"); //we renamed main.js
> var ddoc = {_id:'_design/app', shows:{}};
> exports.app = ddoc;
> ddoc.shows.foo = function (doc, req) {
>  return "<h1>Test App</h1><p>So Much</p>";
> };
> 
> in the blog by Chris Strom he used a command line like:
> $node ./lib/bin.js -s -d testapp.js -c http://127.0.0.1:5984/testapp
> 
> when we tried this - got errors with "-d" and "-c"
> 
> I have no idea what the "-s" "-d" or "-c" command operators do
> 
> can anyone help on this - thks
> 

Reply via email to