Modify bind address for couchdb 0.9.0

By default couchdb only binds to 127.0.0.1 so it’s not accepting requests from other IP addresses. The bind address setting can be modified in the configuration file. For 0.9.0, by default, the default configuration file is located at /usr/local/etc/couchdb/default.ini, and the local configuration file is located at /usr/local/etc/couchdb/local.ini. Settings in the local configuration file will override those in the default one.  Bind address is in the [httpd] section [httpd] port = 5984 bind_address = 127.0.0.1 Note that in the local configuration file, this may be commented out with a leading “;”, if you want to set it in the local … Continue reading Modify bind address for couchdb 0.9.0

Making an executable standalone Merb Slice gem

I have a standalone Merb Slice which can be started by running the “slice” command in its top directory. Today I needed to make a gem file for this Slice so that people can install the gem and start it directly by running the Slice’s name, for example, “foo”. So I created the Rakefile, in which I specified the executable file in the following way: — Code: Rakefile — spec = Gem::Specification.new do |s|  s.rubyforge_project = ‘merb’  s.name = GEM_NAME  s.version = GEM_VERSION  s.platform = Gem::Platform::RUBY  s.has_rdoc = false  s.summary = SUMMARY  s.description = s.summary  s.author = AUTHOR  s.email = … Continue reading Making an executable standalone Merb Slice gem