Fork me on GitHub
#luminus
<
2017-09-12
>
donyorm14:09:28

What library or namespace does luminus use to set the DATABASE_URL environment variable used by migratus? I can't seem to find where it is defined.

jumar18:09:38

@donyorm luminus uses cprop library - generated config.clj contains something like this:

(defstate env :start (load-config
                       :merge
                       [(args)
                        (source/from-system-props)
                        (source/from-env)])
  )

jumar18:09:48

typically, you should set :database-url in your profiles.clj:

{:profiles/dev  {:env {:database-url ""
....