Hi, I'm having some trouble deploying my app to heroku. Running lein uberjar
locally works fine. My Procfile looks like:
web: java $JVM_OPTS -cp target/uberjar/my-app.jar clojure.main -m my-app.core
That command also works fine locally.
When I try to deploy to heroku this is what I see in the logs:
Error: Could not find or load main class clojure.main
Anyone experience something similar?
@curlyfry my Procfile
looks like web: java $JVM_OPTS -jar target/my-app-standalone.jar host 0.0.0.0 port $PORT
I think you want -jar
instead of -cp
and I have :main my-app.core :uberjar-name "my-app-standalone.jar"
in project.clj
@bostonaholic Thanks a lot, I'll try it out next time I'm at my computer!
np