You are viewing the documentation for Play 1. The documentation for Play 2 is here.

Manage application.conf in several environments

When you work in a team, different developers will use different configuration keys in their application.conf. For example, the log level, some database configuration... This generally leads to recurrent conflicts when you commit the file using your VCS.

Furthermore, different deployment environments – e.g. dev, test, staging and production – need different configurations.

The framework ID

To resolve this problem, play allows you to give an ID to each framework installation. Use the id command of the play tool to define this ID :

play id

You can then prefix your configuration keys with the framework ID for which the configuration option is intended : app
# Configuration for gbo
# Configuration for src
# Production configuration