Skip to content
Rebar templates for generating custom couchdb releases
Find file
Latest commit 2080b00 @benoitc benoitc update README.
Failed to load latest commit information.
rcouch.rel
.gitignore add rcouch11, rcouch11_embed templates for 1.1 release
LICENSE
README.md update README.
rcouch.Makefile fix escaping. Not needed with latest rebar.
rcouch.app.src initial release.
rcouch.configure initial release.
rcouch.erl initial release.
rcouch.gitignore initial release.
rcouch.md initial release.
rcouch.rebar.config initial release.
rcouch.template add rcouch11, rcouch11_embed templates for 1.1 release
rcouch11.rebar.config add rcouch11, rcouch11_embed templates for 1.1 release
rcouch11.template add rcouch11, rcouch11_embed templates for 1.1 release
rcouch11_embed.template add rcouch11, rcouch11_embed templates for 1.1 release
rcouch_embed.app.src initial release.
rcouch_embed.erl initial release.
rcouch_embed.rcouch.erl initial release.
rcouch_embed.template add rcouch11, rcouch11_embed templates for 1.1 release
rcouch_embed_app.erl initial release.
rcouch_embed_sup.erl initial release.
rcouch_httpd_misc.erl

README.md

Rebar templates for generating custom couchdb releases

This project provide rebar templates that allows you to create your own CouchDB releases or embed CouchDB applications based on the rebared version of Apache CouchDB provided by the refuge project.

The version of CouchDB provided can be based on:

  • trunk (updated once a day)
  • branch 1.1x (stable release)

Platforms supported are Linux, FreeBSD 8.0x and sup, MacOSX 10.6/10.7 with Erlang R13B04/R14x, Windows is coming. Tested on i386, amd64 and Arm platforms.

Installation:

Install rebar. You can do that via homebrew:

$ brew update
$ brew install rebar

Note:make sure to use latest rebar version/

Drop these templates in ~/.rebar/templates.

Create a custom CouchDB release

To create a custom release of CouchDB with your own plugins, use the rcouch templatefor trunk or rcouch11 for 1.1.x branch:

$ mkdir myapp
$ rebar create template=rcouch appid=myapp

Then a full custom release has been installed. To use it:

$ ./configure
$ make dev
$ ./rel/dev/bin/myapp

or create a full release and install it by running the command line:

$ make install

You can now start to customize your release by adding your plugins to rebar config and editing rel/reltool.config.

Embed CouchDB in your application

To start an Erlang OTP application that embed CouchDB, use the rebar_embed template for trunk or rcouch11_embed for 1.1.x branch:

$ mkdir myapp
$ rebar create template=rcouch_embed appid=myapp

It create a custom app in apps/myapp/src that you can edit. Then use it like above.

Something went wrong with that request. Please try again.