Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 29719 invoked from network); 9 Oct 2010 22:20:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 22:20:23 -0000 Received: (qmail 41767 invoked by uid 500); 9 Oct 2010 22:20:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41720 invoked by uid 500); 9 Oct 2010 22:20:21 -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 41712 invoked by uid 99); 9 Oct 2010 22:20:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 22:20:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ido.ran@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 22:20:15 +0000 Received: by qwd7 with SMTP id 7so1459110qwd.11 for ; Sat, 09 Oct 2010 15:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=o+FwDsFE7t9aD4RNmpLqTApB+c0yhzwy7yj+k8DlxQI=; b=tO5H3JTQMTUxmFJA5Q8lCThGh/STcvH9clbf5xii0VCqQg47rGe7V+FjORGezKec2T j9IgCLHVH49EY93CqKWIouDoqGLwN0KxvGMLyno+iViwAd4aJPict2zTurUDelP7DVZK +WaxGCD2O8aHZZIoqqC5Lf+O5xVknsb3ObOv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=N1MjzX2D39okVKpUhlPfNfX8Sg5cLqlJtwy+HC14vKGbd2EuOkr80WaDFB0Q/AAPl7 44xTPE6oPhuvxQ7krBjj1FGIEkj9BcthDEDZUSSOJ6um8nLA5V+RYbUroIyyP2qFyqFK nWuBvKuZr3S+FHy6ARXyjgzGF3l+XyW3/HeLY= Received: by 10.224.49.72 with SMTP id u8mr3023381qaf.9.1286662794335; Sat, 09 Oct 2010 15:19:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.67.133 with HTTP; Sat, 9 Oct 2010 15:19:34 -0700 (PDT) In-Reply-To: References: <78E29CEF-81EA-472C-8D8D-EAD0D3E5063D@purplebulldog.com> From: Ido Ran Date: Sun, 10 Oct 2010 00:19:34 +0200 Message-ID: Subject: Re: SproutCore as CouchApp To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485e7c404cd61b404923686bd X-Virus-Checked: Checked by ClamAV on apache.org --001485e7c404cd61b404923686bd Content-Type: text/plain; charset=UTF-8 GOOD NEWS. I'm happy to say that I've managed to deploy SproutCore app as CouchApp. Although it is only the generated application (Welcome to SproutCore! app) but SproutCore app non the less. Those are the steps I use to do it: 1. use sc-init scapp 2. build the app using sc-build scapp -rc (this will build the app in tmp/build/static). 3. use couchapp generate cdbapp 4. copy tmp/build/static into cdbapp/_attachments 5. open both index.html and javascript.js in /static/scapp/en/ABCD-EFG/ and add /cdbapp/_design/cdbapp/ before every /static (this direct SC to load resources from our CouchDB and not from root of our server). 6. push the application to CouchDB. I have post question in the SproutCore google group to ask how to change the build script to put the full path in. http://groups.google.com/group/sproutcore/browse_thread/thread/f83fb94f9c8f8370 This is exciting, hopefully it will be more common way of work soon. Ido On Sat, Oct 9, 2010 at 6:49 PM, Ido Ran wrote: > Hi, > > I'm back from vacation and I wonder if in the meantime someone has actually > manage to deploy SC app on CouchDB? > Last time I try the sc-build create 2 MB file in each folter of my > deployment directory which made the push take forever, and even when I push > it to localhost it did not run after that. > > Thank you, > Ido > > > On Sat, Sep 18, 2010 at 4:11 PM, Chris Anderson wrote: > >> On Sat, Sep 18, 2010 at 3:07 AM, Ido Ran wrote: >> > I plan on deploy my application on either CouchOne or CloudAnt so the >> first >> > option is not available there (to my understanding). >> > The second one seem to be possible. I'll try it and let you know. >> > >> > What do you think in general about the idea of using SproutCore as >> front-end >> > and CouchDB as backend? >> >> there are others who have done this before. I have a feeling if you >> use the SC build script, then push the product, you will have a much >> smaller app bundle. >> >> > It will be hard to recreate all controls in evently, does it? >> >> yes that would be like squeezing oranges in an attempt to build a >> movie theater... evently is just a shortcut for writing jquery code, >> and a convenient way to package widgets as reusable objects. >> >> Chris >> >> > >> > Ido >> > >> > On Sat, Sep 18, 2010 at 7:03 AM, Dave Cottlehuber >> wrote: >> > >> >> On 18 September 2010 04:50, Ido Ran wrote: >> >> > Hi, >> >> > I have some new things I've found. >> >> > 1. SproutCore build is very large. 62MB large. The reason is that as >> part >> >> of >> >> > the build they provide the SproutCore libraries, and every part of >> the >> >> > library (like core_tools, datastore, datejs) have file >> >> > name javascript-packed.js which is 2.2MB (for every language). That >> what >> >> > make the couchapp push take so long. When I work on my local machine >> it >> >> > still take long, but not that long. I guess I may have did something >> >> wrong >> >> > during the build but I'm not sure. >> >> > >> >> > 2. After I manage to push the application into CouchDB I'm sorry to >> say >> >> that >> >> > the application didn't work due to failure of loading JavaScript >> files. >> >> > >> >> > :5984/static/sproutcore/testing/en/current/javascript.js?1284229073< >> >> >> http://localhost:5984/static/sproutcore/testing/en/current/javascript.js?1284229073 >> >> >Failed >> >> > to load resource: the server responded with a status of 404 (Object >> Not >> >> > Found) >> >> > The url I use to load the application is * >> >> > >> >> >> http://localhost:5984/raccon/_design/raccon/static/hello_world/en/current/index.html >> >> > * >> >> > >> >> > **As you can see it try to load the libraries directly from the root >> of >> >> the >> >> > server, not the design document location. >> >> > >> >> > If some can help in any one of those issues it will be great. >> >> > >> >> > Thank you, >> >> > Ido >> >> >> >> Hi Ido >> >> >> >> Sorry small children helping with keyboard here.. only half the email. >> >> Would using the rewrite handler help? >> >> >> >> http://wiki.apache.org/couchdb/Rewriting_urls >> >> or possibly >> >> http://wiki.apache.org/couchdb/How_to_change_the_front_page >> >> >> >> cheers >> >> Dave >> >> >> > >> >> >> >> -- >> Chris Anderson >> http://jchrisa.net >> http://couch.io >> > > --001485e7c404cd61b404923686bd--