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 971A29AE3 for ; Thu, 8 Dec 2011 15:16:49 +0000 (UTC) Received: (qmail 76644 invoked by uid 500); 8 Dec 2011 15:16:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 76606 invoked by uid 500); 8 Dec 2011 15:16:47 -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 76598 invoked by uid 99); 8 Dec 2011 15:16:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 15:16:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,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 drjasonwoodruff@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 15:16:42 +0000 Received: by ghrr14 with SMTP id r14so1937732ghr.11 for ; Thu, 08 Dec 2011 07:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=ouYGfBhiCbqAneRtWW+4+0E7Q77ZT6FfuJqIGAL572I=; b=n/gtLcz/NqHb798oN0z6R3M0/xMMPUk5yTIYBoiiNOGItGJ1T9xyNkWzZQivU7Q5rx JKKLO8dkJ5Mn3xVNJzUspQy16QfQZdCKcLX/TRPmDl0oz6yDUXBmU1SUkkcU0aTxxuXn UiHTo9RAUOKYlvKksqWb6y9yLlenPccq5Zmj0= MIME-Version: 1.0 Received: by 10.236.181.231 with SMTP id l67mr5500802yhm.8.1323357381946; Thu, 08 Dec 2011 07:16:21 -0800 (PST) Reply-To: jasonwoodruff@btinternet.com Sender: drjasonwoodruff@gmail.com Received: by 10.101.36.16 with HTTP; Thu, 8 Dec 2011 07:16:21 -0800 (PST) Date: Thu, 8 Dec 2011 15:16:21 +0000 X-Google-Sender-Auth: KTYz_QM_ZGN_EGV7Hq0Mk6YNFQc Message-ID: Subject: couchapp on node.js From: Jason Woodruff To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3056303fa96e5904b3962690 --20cf3056303fa96e5904b3962690 Content-Type: text/plain; charset=ISO-8859-1 Hi I'm experiencing some strange behaviour with couchapp on node.js. For example, I receive a 'could not create' message, even though the app is created? $ couchapp boiler test3 Could not create /home/jason/CouchApps/test3 ........................??????? And, so as to prove it, I can then push it to the db $ couchapp push app.js http://127.0.0.1:5984/test3 Preparing. Serializing. PUT http://127.0.0.1:5984/test3/_design/app Finished push. 1-72b18a3b961a0f16fa9f988cb9c28da2 I've cloned Chris Anderson's 'sofa' blog app. git clone git://github.com/jchris/sofa.git But despite every which way I can think of I cannot get it to push to the db. I'm using couchapp push app.js http://127.0.0.1:5984/[new empty db] I've called this from the sofa, _attachment and script directories. Nothing works. Running from the /script directory this is the error: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ ReferenceError: $ is not defined at Object. (/home/jason/CouchApps/sofa/_attachments/script/app.js:1:63) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/local/lib/node_modules/couchapp/bin.js:78:24) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) Pulling sofa into /usr/local and going through the same process of running the command from the /script directory I get a different error. node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'app.js' at Function._resolveFilename (module.js:334:11) at Function._load (module.js:279:25) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/local/lib/node_modules/couchapp/bin.js:78:24) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Array.0 (module.js:470:10) Is this all a bit buggy, or am I making a horlicks of things? Thanks Jason --20cf3056303fa96e5904b3962690--