Thursday, April 12, 2012

How do I change seed/database settings in PlayMorphia between dev and prod?

I have a Play Framework (1.2.4) project with PlayMorphia that has two different database connection profiles. One is for development and the other is for production, but I am only seeing one static looking config file hosting the values.

I am reading on how this all works, but struggling on how to support two configuration settings. Is there some configuration trick in Play that people use?

1 comment:

  1. suppose you have

    Now add one more line:

    And start your application:

    play start --%prod