Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74E287A02 for ; Mon, 7 Nov 2011 16:54:11 +0000 (UTC) Received: (qmail 66231 invoked by uid 500); 7 Nov 2011 16:54:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 66190 invoked by uid 500); 7 Nov 2011 16:54:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 66182 invoked by uid 99); 7 Nov 2011 16:54:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 16:54:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.tigernassau@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 16:54:02 +0000 Received: by vcbfo1 with SMTP id fo1so1055260vcb.11 for ; Mon, 07 Nov 2011 08:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=LJJFobLiFuP9NjRC2vOnQiTyROIezcCRFiNQYqTDI9g=; b=mCFVxYRjbHQk3byxTQUjmh8G8+vP5FOQE8wI8ScejX0NvsLiQyHRvQz+Z+4th1BTHT pDroZWHFA5catJchWpXpHDviGdyFolFmZZ2oxLiK80kP56mXPBVNVmXIB0FRgLSBxt+N t0CWXWI9TnEKXeZrh82W0clyDOXrLXNvytK30= Received: by 10.220.117.145 with SMTP id r17mr1911883vcq.243.1320684821353; Mon, 07 Nov 2011 08:53:41 -0800 (PST) Received: from [192.168.1.2] (pool-74-105-42-176.nwrknj.fios.verizon.net. [74.105.42.176]) by mx.google.com with ESMTPS id et7sm30808329vdc.18.2011.11.07.08.53.38 (version=SSLv3 cipher=OTHER); Mon, 07 Nov 2011 08:53:39 -0800 (PST) Message-ID: <4EB80D11.1080504@gmail.com> Date: Mon, 07 Nov 2011 09:53:37 -0700 From: "john.tiger" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Thunderbird/3.1.7 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: nodejs couchapp Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 "

Test App

So Much

"; }; 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