Possible Duplicate:
How do I configure multiple databases work in Play 2.0?
Basically, I have an app which I’m testing locally, and then deploying to the server. I’d like a painless way of either automatically, or manually selecting which database configuration to use. How can this be done in Play framework? I’ve seem some info of this in the documention but I don’t know Scala, therefore I’d like some simple instructions if possible.
You can use Alternative configuration file on localhost where you can override DB settings (and other elements) as described in this documentation. In this case in
application.confput data of the production server and inlocal_something.confput local data.Also You can put directly overrided value in the command line ie as
-Ddb.default.driver=some.driveranyway it will be just less comfortable than using the file.