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 21ABBD3F0 for ; Sat, 3 Nov 2012 17:29:17 +0000 (UTC) Received: (qmail 8942 invoked by uid 500); 3 Nov 2012 17:29:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8910 invoked by uid 500); 3 Nov 2012 17:29:15 -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 8902 invoked by uid 99); 3 Nov 2012 17:29:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 17:29:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 17:29:09 +0000 Received: by mail-lb0-f180.google.com with SMTP id ge1so3061792lbb.11 for ; Sat, 03 Nov 2012 10:28:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=lxJxLg0T0pPqtk5b3FEN8KXxMi7Ptp6+Ot2rHOogJgs=; b=B4Lmxx81jEClo13NaJSdph7nI3Bq1qiaHUuEmozcYvepP2EQKlVnHv/G29MUM9Pdxp EMDpON57MEHIrhuxUaArc0a9HrKts67e1zx/kbl8WWYxPfgp0YPd/fYqOGt8LD+CoVch yiRGa19AAt95zCwmU4xvY9v/a8MpKFXeZZyBQ2CWdoH+CzLbtO7vDubOJHGXkxjL052n Tz2n5PMesjyfqPoMWVEcMfnyneoozWF4E6A0cMp9NeC1Ckz1SgZexsIKlULkwtdeJABR nZwY2g7xCazv8Mn6fA3s3pjOxvqEuirkwTZM4cjn0k17IiLpPVcf4x8SpFsngwHRwNXX 00iA== Received: by 10.112.42.233 with SMTP id r9mr1980265lbl.76.1351963728340; Sat, 03 Nov 2012 10:28:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.24.136 with HTTP; Sat, 3 Nov 2012 10:28:28 -0700 (PDT) X-Originating-IP: [68.5.117.177] In-Reply-To: References: From: Mark Hahn Date: Sat, 3 Nov 2012 10:28:28 -0700 Message-ID: Subject: Re: help with rewrite To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba10a7dfc6e78104cd9a9554 X-Gm-Message-State: ALoCoQkx6IhjXd3Fd/YIhciymbKgFvTPZofc0LP2eNvGVS+F15UcCkJK9QCQbh9FUWpSe5UsiDJH X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba10a7dfc6e78104cd9a9554 Content-Type: text/plain; charset=ISO-8859-1 It's actually going faster than I expected. I've never used backbone before. The backbone router is doing the parsing of the couch urls all by itself. Maybe by early next week it will actually be useful as a super-curl. > And pop on over to the dev list! I've always assumed that list was for developers of couch, not couch apps. But I'll take a look. On Sat, Nov 3, 2012 at 10:00 AM, Noah Slater wrote: > Let us know how you get on, Mark! (And pop on over to the dev list!) > > On 1 November 2012 01:27, Mark Hahn wrote: > > > It doesn't appear anything has happened yet on the new futon you pointed > me > > to. > > > > I'm going to go ahead for the normal vain reasons. I want to learn new > > tools and I want to have one that works exactly the way I want it to > work. > > Also i think plowing ahead without waiting for committee consensus would > > be good (excuse my arrogance). > > > > Thanks for the links to the magic pixie dust. I hope it doesn't require > > erlang. If it does I can use the long url for now. > > > > On Wed, Oct 31, 2012 at 6:17 PM, Dave Cottlehuber > > wrote: > > > > > On 1 November 2012 01:41, Mark Hahn wrote: > > > > > > > I've just started working on a futon replacement called "ftn" ( > > > > https://github.com/mark-hahn/ftn). It is a couch app built with > > kanso. > > > I > > > > need to start my app by referencing a design doc like _design/ftn and > > > then > > > > inside my app make ajax calls to a different db. > > > > > > > > Right now I have to start the app with something like > > > > http://domain:5984/ftn/_design/ftn/idx.htm. I obviously would like > to > > > use > > > > the vhost and rewrite feature to start the app with something > shorter. > > I > > > > can't figure out how to do this because any ajax call in my app for a > > > > different db would also be sent to my ftn db due to the vhost. > > > > > > > > Can someone figure out how I can use a short url instead of > > > > http://domain:5984/ftn/_design/ftn/idx.htm? > > > > > > > > > > > Looks like some nice work Mark. Please check over on dev@ there's > > already > > > some work going on in this vein, we'd love to see you contribute there! > > > > > > > > > > > > http://mail-archives.apache.org/mod_mbox/couchdb-dev/201210.mbox/%3CC4A1A200-C7CE-498D-91CB-C84ED7405EE2@redcometlabs.com%3E > > > > > > > > > http://mail-archives.apache.org/mod_mbox/couchdb-dev/201210.mbox/%3CCAFUSCh-en-K44NBmy=WYVJGkwgkA_Nepb6zcC_V5_2_fSA024Q@mail.gmail.com%3E > > > > > > > > > > P.S. How does futon get away with a URL with just the path _utils? > > Can > > > I > > > > do this with something like _ftn and have it fire up my couch app? > > > > > > > > > > > > > > > > https://github.com/apache/couchdb/blob/master/etc/couchdb/default.ini.tpl.in#L124is > > > the magic pixie dust. Either point towards the filesystem or take a > > > read > > > of http://davispj.com/2010/09/26/new-couchdb-externals-api.html and > see > > if > > > you can use that to proxy directly to a couchapp. I think Ryan has a > fix > > > for this as well? > > > > > > A+ > > > Dave > > > > > > > > > -- > NS > --90e6ba10a7dfc6e78104cd9a9554--