overtone

wunsch 2016-04-12T19:33:33.000089Z

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?

2016-04-12T19:49:33.000091Z

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

wunsch 2016-04-12T19:50:30.000092Z

@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

2016-04-12T19:51:31.000093Z

oh

wunsch 2016-04-12T19:53:24.000094Z

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

wunsch 2016-04-12T19:53:35.000095Z

(or any Clojure project for that matter)

2016-04-12T19:55:45.000096Z

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

2016-04-12T19:56:24.000097Z

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

2016-04-12T19:56:55.000098Z

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

2016-04-12T19:56:59.000099Z

anywhere

2016-04-12T20:01:08.000100Z

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

wunsch 2016-04-12T20:27:16.000101Z

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

wunsch 2016-04-12T20:42:18.000103Z

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

2016-04-12T20:42:24.000104Z

oh, yeah

wunsch 2016-04-12T20:42:25.000105Z

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

2016-04-12T20:42:30.000106Z

it could be

2016-04-12T20:42:37.000107Z

try to get rid of it

2016-04-12T20:42:41.000108Z

and see what happens

wunsch 2016-04-12T20:45:19.000109Z

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)

2016-04-12T20:46:28.000110Z

not a clue, sorry 😐

wunsch 2016-04-12T20:47:02.000111Z

Yeah

wunsch 2016-04-12T20:47:20.000112Z

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

wunsch 2016-04-12T20:53:52.000113Z

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

2016-04-12T21:04:37.000114Z

live

wunsch 2016-04-12T21:12:14.000115Z

hm