Skip to content

Instantly share code, notes, and snippets.

@m3talsmith
Created September 13, 2009 03:42
Show Gist options
  • Save m3talsmith/186074 to your computer and use it in GitHub Desktop.
Save m3talsmith/186074 to your computer and use it in GitHub Desktop.
== Install
Go to install for Snow Leopard and install all the dependencies as described here http://wiki.apache.org/couchdb/Installing_on_OSX
sudo svn co http://svn.apache.org/repos/asf/couchdb/trunk /usr/local/couchdb
cd /usr/local/couchdb
./bootstrap && ./configure --with-js-include=/usr/local/spidermonkey/include --with-js-lib=/usr/local/spidermonkey/lib
make
make dev
Download couchdbd from this gist
sudo cp couchdb /usr/local/bin/
== Usage
=== Start
couchdbd start
open http://127.0.0.1:5984/_utils/
=== Stop
couchdbd stop
== Enjoy!
#!/usr/bin/env ruby
case ARGV.to_s
when "start"
puts "Starting couchdb .."
system "/usr/local/couchdb/utils/run &"
when "stop"
puts "Stopping couchdb .."
system "ps ux | awk '/couchdb/ && !/awk/ {print $2}' | xargs kill"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment