This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-14
Channels
- # aleph (2)
- # asami (1)
- # aws (6)
- # beginners (65)
- # cider (12)
- # clj-kondo (11)
- # cljs-dev (1)
- # clojure (179)
- # clojure-dev (15)
- # clojure-europe (5)
- # clojure-losangeles (5)
- # clojure-nl (1)
- # clojure-spec (6)
- # clojuredesign-podcast (50)
- # clojurescript (28)
- # cryogen (31)
- # data-science (10)
- # emacs (2)
- # events (1)
- # fulcro (39)
- # helix (4)
- # luminus (3)
- # malli (5)
- # nrepl (4)
- # off-topic (3)
- # pathom (1)
- # reveal (10)
- # shadow-cljs (5)
- # spacemacs (3)
- # tools-deps (6)
- # vscode (1)
- # xtdb (3)
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.
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?
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.