In Maven projects, we tend to use
.properties files to store various configurations, and use Maven profiles to switch between development and production environments. Like the following example:
As for Leiningen projects, there’s no variable substitution in profile facility, and although in profiles we could use
:resources to compact production-wise files into Jar, these files are actually replacing the original ones, instead of being merged. One solution is to strictly seperate environment specific configs from the others, so the replacement will be ok. But here I take another approach, to manually load files from difference locations, and then merge them.