Fork me on GitHub
#luminus
<
2020-11-14
>
jmckitrick06:11:21

Figured it out. The config.edn file on the classpath (in ‘resources’ for that env) must contain something. An empty map is not sufficient. Once you set a k/v pair, the config will load. For db credentials in this case, GitLab allows you to set up a postgres service with ‘trust’ auth method.

jmckitrick06:11:12

If there’s a better way, please let me know. Perhaps using ‘real’ credentials in the ‘test’ config file, and using those in place of the ‘trust’ auth method?

jmckitrick15:11:32

Update: the simplest approach that works was to put a :database-url in the config.edn for the test env (which ensures the file is not empty) and configure the db that way rather than an environment variable.