This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (9)
- # boot (114)
- # cider (15)
- # cljs-dev (10)
- # clojure (35)
- # clojure-boston (5)
- # clojure-dev (39)
- # clojure-greece (1)
- # clojure-japan (10)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (10)
- # clojure-sg (8)
- # clojure-switzerland (1)
- # clojure-uk (34)
- # clojurescript (76)
- # clojurescript-ios (3)
- # clojurewerkz (1)
- # clojurex (9)
- # cursive (3)
- # datomic (1)
- # devcards (137)
- # emacs (5)
- # events (1)
- # hoplon (99)
- # jobs (1)
- # ldnclj (50)
- # off-topic (1)
- # om (3)
- # onyx (10)
- # re-frame (4)
- # reagent (1)
- # ring-swagger (15)
- # yada (35)
I just started playing with hoplon, and I’m trying to load the generated js by a hoplon project on another server. I’m doing this because I’m thinking of deploying the generated hoplon js file to a cdn and just load it into the html of a server. However, the generated html is looking for
index.html.out/goog/base.js, which isn’t present in that path in the server.
Okay, I got it working using advanced optimisations for cljs in dev. Would be interested to know the recommended approach.
@roberto: for production builds, advanced compilation is the recommended approach. During dev, the default (none) is faster.
yeah, I understand, but I am building the hoplon app separate from the server. So in dev I wanted to be able to load the hoplon produced assets in the server app. Mainly because of authentication and wanted to conserve the flow.
I can just switch to having the front-end and back-end in one app, but wanted to avoid that for now.
And you are copying the compiled file to the path the server uses for static content?
So in this case during dev you don't need to use advanced compilation. Only use it before sending it to the cdn. It will generate just one js file in this situation.
which is fine, I might just go down that route, I just don’t want to figure out how to deploy a boot app to Heroku.
Yeah, I agree on the miscommunication. So if you used the hoplon template it has only the front end. No backend there. There is a serve task but is only for serving static assets.
I only wanted to focus on hoplon for now, didn’t want to yak shave with boot just to get familiar with hoplon.
Yeah, hoplon doesn't work without boot. The files it generates are static and will work were you put them, but you will need boot to compile them.
yep. I might still be able to keep my intended work-flow if I figure out how to use jwt in clojure ….
I use hoplon at work and all front end apps are static, nothing is bundled with the backend. We just deploy on s3 with cloudfront.
The dev setup is like the one on the template. Run
boot dev and point the browser to
localhost:8000. Change some files, save and check the new compiled page. Rinse, repeat.
so, the main reason I wanted to load the assets in the server was because I’m using oauth.
Hi all, random question: Why do the hlisp files have a .hl extension? Why not just keep them .cljs?
@levitanong: re: .hl extension, we use that because the content isn't valid cljs, even tho the syntax is
and, because it's easy in most editors to recognize the extension as clj syntax for highlighting
nope it is infact giving me a castra.core exception but with the default Server Error message
Has anyone gotten 'boot dev' with a hoplon project to work with windows after making a change to the index.cljs.hl file?
changing the source file attempts to delete files in the .boot/cache/tmp/ directory. While this works in unix (deleting a file in use) you can't in Windows. You get the dreaded "The process cannot access the file because it is being used by another process." message when trying from the command line.
the fileset stuff depends on being able to manage temp files without exposing them to the user
i am using boot in an app deployment scenario on windows, i only ran into that issue while developing on < Win10
Micha, are you thinking the files that are trying to be deleted aren't closed in the first place?
we make operations on the fileset efficient by moving hard links around instead of writing to files
http://stackoverflow.com/questions/1481178/how-to-force-garbage-collection-in-java See post with 30 votes. However someone noted an issue with it.
On save of the source, is it trying to clean up the current tmp directories and then create a new one?
the files in the working directory that's on the classpath are just hard links into the blob dir