couchbase / couchbase-ruby-model

The Active Model implementation for Couchbase Server built on couchbase-ruby-client
61 stars 23 forks source link

Config unable to connect with remote Couchbase server #7

Open stijlfigurant opened 11 years ago

stijlfigurant commented 11 years ago

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!

avsej commented 11 years ago

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 commented 11 years ago

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

AdamMarkowski commented 9 years ago

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)