I just created a Luminus app by running:
lein new luminus foobar
and when I try to run it with foreman like this:
foreman start
the way the docs describe, I get this error:
Error: Could not find or load main class clojure.main
which is also the same error I get from Heroku. The Procfile that the template created contains this:
web: java $JVM_OPTS -cp target/foobar.jar clojure.main -m foobar.core
What's going on, how do I fix it?
My best guess is that you need to build the project with the command
lein uberjar
. This sequence works: