From user-return-21943-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sat Sep 1 08:29:56 2012 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 60278DB9A for ; Sat, 1 Sep 2012 08:29:56 +0000 (UTC) Received: (qmail 6375 invoked by uid 500); 1 Sep 2012 08:29:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5946 invoked by uid 500); 1 Sep 2012 08:29:50 -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 5886 invoked by uid 99); 1 Sep 2012 08:29:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 08:29:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 08:29:40 +0000 Received: by qadc10 with SMTP id c10so1633158qad.11 for ; Sat, 01 Sep 2012 01:29:19 -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:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=xKfsJVDzFMvt0jGhNgTo3Tdqt1W1Hr3Gn/oH/4KMecs=; b=ZjeEIeQhdPJZNidOgIvxxK8azJ8kD8bFit0FJ4sjdpwhYfyMWSbn08rTenshDGo3ZR KhTUp+giI+O03p2JYm6ame4FaA8IrY37UZFyDcr6cO84zay58Rx1ZHZZyxsHWF1abpZd FSC7tbgC/223jukHnBQN+iHHiV2HXV0xlYJ0htHYyX3ROhF5nrH/FytA87jfhLtpRUh1 pvyUcLjPVd3G0Mr3biotO7yTPpFMFJrq1aU77Z/0IVNoehGNau8yytUGvALUjJG8m2/h 7sYDKGhYXI6r4NXMYa568ADNMJItSkYbJ4yUD7Ubqj6dA16IKsAwTPAJEi57YLewwcLr TzWw== MIME-Version: 1.0 Received: by 10.224.78.199 with SMTP id m7mr23803272qak.28.1346488158986; Sat, 01 Sep 2012 01:29:18 -0700 (PDT) Received: by 10.49.86.74 with HTTP; Sat, 1 Sep 2012 01:29:18 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: <82C3CCBE-6332-4E9C-A5AC-1EA9D776B46C@gmail.com> Date: Sat, 1 Sep 2012 10:29:18 +0200 Message-ID: Subject: Re: Include CouchDB in Windows Application From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkFknNskdp60QQ8jnVu9kUbIifr4I8TL50D3Ran62mCBCkmVTB7ckgTRblQaNmNwBa1D93E On 1 September 2012 07:54, Ido Ran wrote: > Hi, > I have some news about running CouchDB in Windows. > I've run the setup application setup-couchdb-1.2.0-otp-R15B.exe and install > it in C:\Program Files (x86)\Apache Software Foundation\CouchDB (which is > the default installation location for 64 bit windows). > > I've then start to copy directories into my home directory to see what > needed and what needed change. There's a list of these in slim_couch.cmd [1]. > I've end up with those directories: > - bin > - erts-5.9 > - etc > - lib > - share > - var > > I had to change bin\erl.ini to point to the couchdb directory as absolute > path. You can use relative path or IIRC even no erl.ini at all [2]. > I then try to remove unnessesary files. I was able to go into the CouchDB > directory into lib and search and delete the following directories: > - src (src, c_src, java_src) > - example > - include > > This remove about 41MB. Ditto [2] currently CouchDB ships with a full erlang install. I'd be interested to know if anybody actually requires this now or not. > This means I can copy all of the files I now have in my home directory > during the setup of my application, rewrite the path in erl.ini, rewrite > values in etc\couchdb\local.ini, for administator, port, url, and run > CouchDB as child process of my main application. This way I'll have control > over starting and stopping CouchDB for my application. > > Have I missed something? Use relative paths & this should be "copy all files" & you're done. Otherwise, LGTM. Do let me know how Hebrew path elements work out with erlang! [1]: https://www.dropbox.com/sh/jeifcxpbtpo78ak/su5OLiAyiI/misc/slim_couch.cmd [2]: http://mail-archives.apache.org/mod_mbox/couchdb-user/201203.mbox/%3CCAHZBNKamEANRQFgrk7yXfyfd7HsH2HKd8+SbqjoBTb=wbfOnUA@mail.gmail.com%3E A+ Dave