Skip to content

Instantly share code, notes, and snippets.

@ryanneufeld
Created May 28, 2013 02:32
Show Gist options
  • Select an option

  • Save ryanneufeld/5660178 to your computer and use it in GitHub Desktop.

Select an option

Save ryanneufeld/5660178 to your computer and use it in GitHub Desktop.
ryan@lisa ~/workspace/nickler/www$ brew info couchdb ✹ ✭ inventory
couchdb: stable 1.3.0, HEAD
http://couchdb.apache.org/
/usr/local/Cellar/couchdb/1.2.1 (334 files, 3.6M)
Built from source
/usr/local/Cellar/couchdb/1.3.0 (431 files, 6.4M) *
Built from source
https://github.com/mxcl/homebrew/commits/master/Library/Formula/couchdb.rb
==> Dependencies
Required: spidermonkey, icu4c, erlang
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/couchdb/1.3.0/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
If this is an upgrade and you already have the org.apache.couchdb.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.apache.couchdb.plist
cp /usr/local/Cellar/couchdb/1.3.0/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
Alternatively, automatically run on startup as a daemon with:
sudo launchctl list org.apache.couchdb >/dev/null 2>&1 && \
sudo launchctl unload -w /Library/LaunchDaemons/org.apache.couchdb.plist
sudo cp /usr/local/Cellar/couchdb/1.3.0/Library/LaunchDaemons/org.apache.couchdb.plist /Library/LaunchDaemons/
sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist
Or start manually as the current user with `couchdb`.
To test CouchDB, start `couchdb` in a terminal and then:
curl http://127.0.0.1:5984/
The reply should look like:
{"couchdb":"Welcome","uuid":"....","version":"1.3.0",
"vendor":{"version":"1.3.0-1","name":"Homebrew"}}
ryan@lisa ~/workspace/nickler/www$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment