heroku

2017-09-03T10:13:02.000039Z

Hi, I'm having some trouble deploying my app to heroku. Running lein uberjarlocally 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

2017-09-03T10:14:00.000016Z

Anyone experience something similar?

bostonaholic 2017-09-03T17:33:32.000049Z

@curlyfry my Procfile looks like web: java $JVM_OPTS -jar target/my-app-standalone.jar host 0.0.0.0 port $PORT

bostonaholic 2017-09-03T17:33:45.000004Z

I think you want -jar instead of -cp

bostonaholic 2017-09-03T17:34:41.000084Z

and I have :main my-app.core :uberjar-name "my-app-standalone.jar" in project.clj

2017-09-03T18:05:08.000113Z

@bostonaholic Thanks a lot, I'll try it out next time I'm at my computer!

bostonaholic 2017-09-03T18:05:20.000011Z

np