Web Development with Clojure, Third Edition: `(start)` errors out (page 37)

Hello,

the very first (start) call on the REPL fails for me like this:

43user> (start)
44Execution error at cprop.core/load-config (core.cljc:26).                                                                                                                                                         
45could not find a non empty configuration file to load. looked in the classpath (as a "resource") and on a file system via "conf" system property                                                                  
46user> 

I fixed this by copying the file, ./env/dev/resources/config.edn, as dev-config.edn in the project’s base directory. (I think I saw this somewhere while googling around.)

But I’m wondering if I missed something?

More importantly, what can I change so that I can load the config from ./env/dev/resources/config.edn? Or is this not intended?

I created the project as indicated in the book… I think. I cannot find the history, but I made sure to issue the following command:

$ ​​lein​​ ​​new​​ ​​luminus​​ ​​guestbook​​  ​​--template-version​​ ​​3.91​​ ​​--​​ ​​+h2​​ ​​+http-kit​

Please disregard. I created a project afresh, and that works without an issue.

I figured it out. I had created the project on my git server, and then I cloned it elsewhere.

  1. The lein new luminus ... creates ./dev-config.edn with default values in it.
  2. The Luminus start-up requires ./dev-config.edn.
  3. The problem is that dev-config.edn is listed in .gitignore.
  4. So my cloned repo didn’t get the file.