3 Datasources for prod/test/dev are created automatically by Grails if a new applciation is created.
Unfortunately, there is just one ApplicationBootstrap class. I (probably others) use the bootstrap to create a certain state in the db for my production/test environment, e.g. deleting all tables, then creating new rows, etc. The bootstrap for production needs to be different, of course.
The proposal is to have at least 3 BootStraps that are chosen based on the environment in:
What about some convention in the naming of the bootstrap classes?
DevEnvBootstrap, ProdEnvBootstrap, *EnvBootstrap ?