Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2036

can't use uri anymore in mongoid.yml

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      i'm trying to deploy mongoid 3.0.0 app into heroku and gettting error below;

      There is a configuration error with the current mongoid.yml.

      Problem:
      No sessions configuration provided.
      Summary:
      Mongoid's configuration requires that you provide details about each session that can be connected to, and requires in the sessions config at least 1 default session to exist.
      Resolution:
      Double check your mongoid.yml to make sure that you have a top-level sessions key with at least 1 default session configuration for it. You can regenerate a new mongoid.yml for assistance via rails g mongoid:config.

      Example:
      __development:
      ____sessions:
      ______default:
      ________database: mongoid_dev
      ________hosts:
      __________- localhost:27017

      my mongoid.yml contains;

      production:
      uri: <%= ENV['MONGOLAB_URI'] %>

      i checked out source codes for workaround and didn't see any option to pass 'username', 'password' options also couldn't see anything about 'uri' option.

      thanks

            Assignee:
            Unassigned Unassigned
            Reporter:
            lemmycaution lemmycaution
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: