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.
I use this https://stackoverflow.com/a/22363700/1327651 to see the files in the uberjar in case it matters
@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
here's an example (see build task): https://github.com/relembra/relembra/blob/master/build.boot
I read that a long time ago - I’ll have a look to see if there is something in there
Thanks
again, sorry it probably has lots of stuff you don't care about (and make sure you enable optimizations for production builds)
looks similar to my setup (apart from optimization none) at first sight
so when you do java -jar target/project.jar
(or similar), you are able to serve the compiled files?
https://relembra.estevo.eu/ has a DNS error for me btw @euccastro (not that it matters for me to try building locally)
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
aha sure no problem - just thought I would give you a heads up
nha yes, I'm able to serve the files
ok interesting I’ll have a look then 🙂
which url do you hit to get a file locally?
this is how I access the js output https://github.com/relembra/relembra/blob/master/src/clj/relembra/core.clj#L134
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
it works 😄 thanks for the help euccastro 😄
Anyone recently deployed a Clojure app to Heroku by using boot-clj and the heroku/jvm buildpack?
not recently although I played with it about a year ago and it worked fine