Fork me on GitHub
#luminus
<
2017-09-13
>
donyorm03:09:31

Thanks. is that how the env variable is set when the lein migratus command is run?

donyorm05:09:06

I'm getting this error when I run the migrate command from the boot version: java.lang.IllegalArgumentException: db-spec null is missing a required parameter. Works fine from lein, but apparently the same thing in boot fails. What is missing from the project?

donyorm07:09:34

Found it. Without lein-cprop cprop can't find the values from profiles.clj

donyorm10:09:46

Does lein automatically make keys in .lein-env into environment variables? If not what, library does? This feature apparently doesn't translate to boot

donyorm15:09:10

@yogthos That creates .lein-env file, but it doesn't set the environment variables, right? Or am I missing something?

yogthos15:09:24

right, and the :jvm-opts flag is used to let cprop know to read from it :jvm-opts ["-server" "-Dconf=.lein-env"]

donyorm15:09:32

there we go. And I don't have those set in boot. Thanks for the help