Right now we have a DataSource.groovy file in conf for our grails app. It has settings like this...
development {
dataSource {
dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:mysql://localhost/mydb?useUnicode=yes&characterEncoding=UTF-8"
username = "user"
password = "password"
}
}
When different developers will have different host/username/passwords for their database what is a good way to swap out per-developer settings without changing this file and attempting to remember to not check in the changes to source control? As the application grows so will the number of settings that need to be changed on different developer's machines.