greenlaw110/play-morphia — pull request #63 by jamesward (2012-01-26 22:36:42+00:00)
Title: Added support for morphia.db.url

This adds support to setup the connection based on a `morphia.db.url` config parameter. So I can set my config to:

morphia.db.seeds=127.0.0.1:27017
morphia.db.name=playmongo
%prod.morphia.db.url=${MONGOHQ_URL}

Where `MONGOHQ_URL` is something like `mongodb://localhost/foo` or something like `mongodb://username:password@host:port/db`.

This is necessary for running on Heroku where the connection information is provided in a single environment variable.