Created
September 13, 2009 03:42
-
-
Save m3talsmith/186074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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