Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. production:
  2. sessions:
  3. default:
  4. host:
  5. -localhost:27017
  6. database: my_db
  7.  
  8. There is a configuration error with the current mongoid.yml.
  9.  
  10. Problem:
  11. No hosts provided for session configuration: :default.
  12. Summary:
  13. Each session configuration must provide hosts so Mongoid knows where the database server is located. What was provided was: {"host"=>"-localhost:27017", "database"=>"my_db"}.
  14. Resolution:
  15. If configuring via a mongoid.yml, ensure that within your :default section a :hosts value for the session hosts is defined.
  16.  
  17. Example:
  18.   development:
  19.     sessions:
  20.       default:
  21.         database: my_app_db
  22.         hosts:
  23.           - localhost:27017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement