Reputation: 16440
I'm using the flyway command line tool. I'd like to setup different configuration settings for different environments (development/testing/production), but there will be some common settings. Ideally there can be a common.properties
config, along with individual environment-specific configs (e.g. production.properties
)
Does flyway support including properties from multiple config files in some way?
Upvotes: 1
Views: 3009
Reputation: 35167
Yes, you can by exploiting the loading order of Flyway config files (http://flywaydb.org/documentation/commandline/#configFile)
Place the common settings in either
You can then put the environment-specific properties in the file you specify with
-configFile=/path/to/envspecific.conf
Upvotes: 5