couchbase-ruby-model icon indicating copy to clipboard operation
couchbase-ruby-model copied to clipboard

Config unable to connect with remote Couchbase server

Open stijlfigurant opened this issue 12 years ago • 3 comments

Trying to run rails generate model post, throws error

error couchbase [not found]

config/couchbase.yml:

common: &common
   hostname: 192.168.166.101
   port: 8091
   username:
   password:
   pool: default

development:
  <<: *common
  bucket: cbpb_development

test:
  <<: *common
  bucket: cbpb_test

# set these environment variables on your production server
production:
  hostname: <%= ENV['COUCHBASE_HOST'] %>
  port: <%= ENV['COUCHBASE_PORT'] %>
  username: <%= ENV['COUCHBASE_USERNAME'] %>
  password: <%= ENV['COUCHBASE_PASSWORD'] %>
  pool: <%= ENV['COUCHBASE_POOL'] %>
  bucket: <%= ENV['COUCHBASE_BUCKET'] %>

Have been running into similar issues all day (http://www.couchbase.com/forums/thread/beer-sample-rails-remote-database-servers) - can someone explain why the config is not working?

Thanks!

stijlfigurant avatar Feb 05 '13 17:02 stijlfigurant

Session and Cache stores doesn't use settings from config/couchbase.yml, you should configure them separately. I think I should switch off storing sessions in couchbase and leave it configurable to make it explicit for new users.

@ingenthr could you close this ticket?

avsej avatar Feb 19 '13 09:02 avsej

Switched to :cookie_store by default https://github.com/couchbaselabs/couchbase-beer.rb/commit/912848cda7ba545e426d9aab069a7b68bd305988

avsej avatar Feb 19 '13 10:02 avsej

Hi guys,

I'm dealing with the same issue, nevertheless I can't find any tips about configuration sessions at the couchbase. Where I have to put the config file and what it should contain?

Rails 4.2 couchbase (1.3.10) couchbase-model (0.5.4)

AdamMarkowski avatar Dec 22 '14 15:12 AdamMarkowski