1 parent 31500c9 commit 7d2796aCopy full SHA for 7d2796a
1 file changed
config/initializers/couchdb.rb
@@ -1,10 +1,10 @@
1
require 'couchrest/model'
2
-#CouchServer = CouchRest::Server.new # defaults to localhost:5984
+# CouchServer = CouchRest::Server.new # defaults to localhost:5984
3
# Define which CouchDB instance to use.
4
# Creates the database if it does not exist already.
5
if ENV['CLOUDANT_URL']
6
- CouchServer = CouchRest.database!( ENV['CLOUDANT_URL'] + ENV['APP_NAME'] )
+ CouchServer = CouchRest::Server.new( ENV['CLOUDANT_URL'])
7
else
8
- CouchRest::Server.new # defaults to localhost:5984
9
- CouchServer.default_database = "skillsdb-#{Rails.env}"
+ CouchServer = CouchRest::Server.new # defaults to localhost:5984
10
end
+CouchServer.default_database = "skillsdb-#{Rails.env}"
0 commit comments