Fork me on GitHub
#overtone
<
2016-04-12
>
wunsch19:04:33

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?

nooga19:04:33

@wunsch: sso you want to put your overtone program in an .app ?

wunsch19:04:30

@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

wunsch19:04:24

And I don’t really know what the ideal way to do that with Overtone is

wunsch19:04:35

(or any Clojure project for that matter)

nooga19:04:45

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

nooga19:04:24

if lein uberjar fails, it’s most probably because of the dependency hell

nooga19:04:55

and once you have the jar, just run it using your regular jre/jdk

nooga20:04:08

In fact, I just built a bare bones overtone project into a jar and it seems to work

wunsch20:04:16

@nooga: do you mind sharing your project.clj?

wunsch20:04:18

hm cool. I think I need to figure out how :aot stuff affects building

wunsch20:04:25

b/c i think that’s where this is getting in trouble

nooga20:04:30

it could be

nooga20:04:37

try to get rid of it

nooga20:04:41

and see what happens

wunsch20:04:19

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)

nooga20:04:28

not a clue, sorry 😐

wunsch20:04:20

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

wunsch20:04:52

@nooga: are you using overtone.live or overtone.core with an external server?