boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
2018-07-12T18:53:53.000579Z

Does anyone know how to: - compile some clojurescript - include the files into an uberjar? as resources to serve them It looks like I have to use sift but I cannot figure out how exactly.

2018-07-12T18:56:30.000142Z

I use this https://stackoverflow.com/a/22363700/1327651 to see the files in the uberjar in case it matters

euccastro 2018-07-12T19:12:13.000015Z

@nha probably less focused than you expected, but last time I checked this was a great learning resource on boot + clojurescript: https://github.com/magomimmo/modern-cljs/tree/master/doc/second-edition

euccastro 2018-07-12T19:13:34.000174Z

here's an example (see build task): https://github.com/relembra/relembra/blob/master/build.boot

2018-07-12T19:13:37.000204Z

I read that a long time ago - I’ll have a look to see if there is something in there

2018-07-12T19:13:39.000374Z

Thanks

euccastro 2018-07-12T19:14:08.000131Z

again, sorry it probably has lots of stuff you don't care about (and make sure you enable optimizations for production builds)

1
2018-07-12T19:14:16.000415Z

looks similar to my setup (apart from optimization none) at first sight

2018-07-12T19:15:03.000122Z

so when you do java -jar target/project.jar (or similar), you are able to serve the compiled files?

2018-07-12T19:17:29.000239Z

https://relembra.estevo.eu/ has a DNS error for me btw @euccastro (not that it matters for me to try building locally)

euccastro 2018-07-12T19:24:12.000335Z

thanks @nha. yeah, the README is outdated and the site is currently down. I run it in a raspberry Pi setup at a place I don't currently have physical access to, and it needs a hard cycle

2018-07-12T19:24:32.000365Z

aha sure no problem - just thought I would give you a heads up

euccastro 2018-07-12T19:24:33.000375Z

nha yes, I'm able to serve the files

2018-07-12T19:24:52.000425Z

ok interesting I’ll have a look then 🙂

2018-07-12T19:25:12.000111Z

which url do you hit to get a file locally?

euccastro 2018-07-12T19:31:23.000523Z

this is how I access the js output https://github.com/relembra/relembra/blob/master/src/clj/relembra/core.clj#L134

euccastro 2018-07-12T19:32:21.000043Z

and I have this voodoo which I forget the reason of, but that's what it took for it to work both in the dev task (running locally from source) and in the uberjar: https://github.com/relembra/relembra/blob/master/src/clj/relembra/core.clj#L152

😁 1
2018-07-12T22:49:33.000115Z

it works 😄 thanks for the help euccastro 😄

Petrus Theron 2018-07-12T23:21:15.000044Z

Anyone recently deployed a Clojure app to Heroku by using boot-clj and the heroku/jvm buildpack?

2018-07-12T23:54:01.000121Z

not recently although I played with it about a year ago and it worked fine