Rails CouchDB App not working in Production -


i deployed app on production server , following error :

(there problem config/couchdb.yml file. check , make sure it's present , syntax correct.)

the couchdb.yml file follows :

base: &base  database_prefix:   database_suffix: _<%%= rails_env %>  development:   host: localhost   port: 5984   <<: *base  test:   host: localhost   port: 5984   <<: *base    production:       host: localhost       port: 5984       <<: *base 

and in boot.rb

require 'rubygems'  # set gems listed in gemfile. env['bundle_gemfile'] ||= file.expand_path('../../gemfile', __file__)  require 'bundler/setup' if file.exists?(env['bundle_gemfile']) require 'simply_stored/couch' couchpotato::config.database_name = "http://localhost:5984/thedatabase" 

the database created , works locally; problem on production server, gems installed; not sure why i'm missing should specify differently production.. tried host 127.0.0.1 . no luck

the error thrown on couchdb_initializer.rb; code universal (already generated gem).

i can run app using rails server , open using 3000 port; first error when using ngingx + passenger trough http://

does production couchdb.yml have "all:" in it? if so, try setting "production:" looks code doesn't have special logic in place figure out "all" environment in couchdb.yml file should apply environments when looking "production".


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -