Skip to content

boot run not working out of the box for lack of env #515

Description

@euporos

It seems there's a problem with the template when used with the +boot flag. When I type boot run I get the following error:

java.io.FileNotFoundException: Could not locate lumboot/env__init.class, lumboot/env.clj or lumboot/env.cljc on classpath.
   clojure.lang.ExceptionInfo: Could not locate lumboot/env__init.class, lumboot/env.clj or lumboot/env.cljc on classpath.

AFAICT this is because none of the the env-directories are added to the classpath. I've gotten it to to work by prepending the following to the body of the run task:

(merge-env! :source-paths #{"env/prod/clj"}
              :resource-paths #{"env/prod/resources"})

Since I'm fairly new to Luminus I'm unsure if this is the correct solution. Maybe this is not even a bug, in which case instructions as to how the run task should be used would be helpful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions