Hi, I’ve been trying to figure out what the ideal way of deploying a program using Overtone is. I’ve run into a fair bit of trouble trying to do lein uberjar
and discovered this thread: https://github.com/overtone/overtone/issues/140
Has there been any more thought or work put behind the ideal way of doing this?
@wunsch: sso you want to put your overtone program in an .app ?
@nooga: No I pointed to that thread b/c of the uberjar issues encountered therein. I have my overtone program do a bunch of stuff in -main
and I want to deploy that to a production environment
oh
And I don’t really know what the ideal way to do that with Overtone is
(or any Clojure project for that matter)
well, from my experience with backend services and stuff that runs in linux containers: lein uberjar
, get the resulting xyz-standalone.jar
to the runtime environment, bring your configs if you have any and java -jar xyz-standalone.jar
if lein uberjar
fails, it’s most probably because of the dependency hell
and once you have the jar, just run it using your regular jre/jdk
anywhere
In fact, I just built a bare bones overtone project into a jar and it seems to work
@nooga: do you mind sharing your project.clj?
hm cool. I think I need to figure out how :aot stuff affects building
oh, yeah
b/c i think that’s where this is getting in trouble
it could be
try to get rid of it
and see what happens
Yeah when I remove the {:aot :all}
from the uberjar profile, I still see this error:
java.lang.NoClassDefFoundError: overtone/sc/machinery/server/native/callback_8f8acf38_4862_421e_990b_0398c453b189, compiling:(overtone/sc/machinery/server/native.clj:25:1)
not a clue, sorry 😐
Yeah
Will keep noodling. Worse comes to worse I can put the whole repository up and do lein trampoline run
and that seems to work just fine
@nooga: are you using overtone.live
or overtone.core
with an external server?
live
hm