iriscouch / build-couchdb

Batteries-included CouchDB build system
227 stars 36 forks source link

Using build-couchdb to install couchdb on servers? #37

Closed kikito closed 12 years ago

kikito commented 12 years ago

Hi,

Is it possible/advisable to use build-couchdb in a staging/production server?

If so, what does one have to change in the installation steps so that it works like any other DBMS? I'm particularly interested on starting up couchdb automatically on server boot, and being installed in a "proper" folder - not /home/billy/

I somehow doubt this can be accomplished by simply doing sudo rake instead of rake :)

Regards,

Enrique

jhs commented 12 years ago

The key point to remember is that the build-couchdb rake command is really a wrapper around ./configure && make install.

Firstly, you can simply run rake install=/usr/local and that will internally run ./configure --prefix=/usr/local for all components. Or you might install to /usr/local/software and then use GNU Stow.

Getting CouchDB hooked into the boot process is currently out of scope for build-couchdb (hence its name) and is OS and distribution-specific. For example, the Installing on Ubuntu page is helpful (particularly where it gets into /etc/init.d stuff).

kikito commented 12 years ago

Alright, understood. I was hoping to skip the Installing On Ubuntu steps and the /etc/init.d stuff, but I guess I will not.

Thanks for your feedback and your project!