Fork me on GitHub
#boot
<
2018-07-12
>
nha18:07:53

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.

nha18:07:30

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

euccastro19:07:13

@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

nha19:07:37

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

euccastro19:07:08

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

simple_smile 4
nha19:07:16

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

nha19:07:03

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

nha19:07:29

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

euccastro19:07:12

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

nha19:07:32

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

euccastro19:07:33

nha yes, I'm able to serve the files

nha19:07:52

ok interesting I’ll have a look then 🙂

nha19:07:12

which url do you hit to get a file locally?

euccastro19:07:21

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

😁 4
nha22:07:33

it works 😄 thanks for the help euccastro 😄

Petrus Theron23:07:15

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

nha23:07:01

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