Fork me on GitHub
#boot
<
2015-11-12
>
martinklepsch09:11:58

@podviaznikov: did you use send! As described in the commit?

alqvist16:11:05

Anyone using danielz/system? Is there any way to do a reload when .sql files in the resource dir is changed?

alqvist16:11:19

I have tried with (system :sys #'dev-system :auto-start true :hot-reload true :files ["core.clj" "inspector.clj" "events.sql"])

erichmond17:11:31

is anyone getting this issue when trying to run boot? Erics-Work-iMac:Desktop ericrichmond$ boot -v Downloading https://github.com/boot-clj/boot/releases/download/2.0.0-rc13/boot.jar...Exception in thread "main" java.io.FileNotFoundException: https://github.com/boot-clj/boot/releases/download/2.0.0-rc13/boot.jar at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at java.net.URL.openStream(URL.java:1038) at boot.Loader.download(Loader.java:175) at boot.Loader.install(Loader.java:219) at boot.Loader.main(Loader.java:238) Erics-Work-iMac:Desktop ericrichmond$

erichmond17:11:25

I tried installing via brew, and also the mv boot.sh method

martinklepsch17:11:26

@erichmond: rc13 is very old, I suggest using a stable release

erichmond17:11:28

this is a new install

martinklepsch17:11:49

e.g. export BOOT_VERSION 2.4.2

erichmond17:11:53

I bet I have a .boot file kicking around'

erichmond17:11:15

When in doubt, it’s user error. I violated my own principle simple_smile

martinklepsch17:11:18

boot.properties, yeah that’s likely

martinklepsch17:11:48

check in /.boot and /.boot/cache

erichmond17:11:56

yeah, already fixed

martinklepsch17:11:10

haha, at least it works now 😜

pandeiro19:11:39

what would be the best way to make sure my target-path consists of only x, y, z without removing other unrelated files from my source-paths?

pandeiro19:11:32

ie, i was using (sift :include #{#"x" #"y" #"z"} :invert true), but that removes source files as well

martinklepsch20:11:03

with boot-reload — I’m serving my compiled JS on localhost:4000 but I’m actually loading it on localhost:3000 — is there a way to make boot reload reload files from another host than the current one?

pandeiro20:11:14

i don't think so... but why are you doing that?

martinklepsch20:11:10

Existing app that embeds cljs app.

martinklepsch20:11:33

I wish I wouldn’t have to 😄

juhoteperi20:11:14

martinklepsch: Option to configure the boot-reload client websocket address (or just port) should be enough, but it's currently missing

juhoteperi20:11:21

Or perhaps not, boot-reload should write the WS port to client

martinklepsch20:11:53

@juhoteperi: there is a ws-host option, is that different from the websocket address you’re referring to?

juhoteperi20:11:24

the websocket port is random anyway

juhoteperi20:11:30

and is written to the client cljs

juhoteperi20:11:36

so I think it should work by default

juhoteperi20:11:51

the client should load the files from current host no matter what it is

juhoteperi20:11:47

when a js file changes, new script tag is added to DOM with absolute url, but the url doesn't contain host or port so it's loaded from current host

juhoteperi20:11:58

Oh, you wanted to load files from another host/port

pandeiro20:11:55

@juhoteperi: I don't think that's how it works

pandeiro20:11:09

re: "client should load the files from the current host"

pandeiro20:11:56

at least on 0.4.0

pandeiro20:11:06

when I don't set :ws-host, it seems to default to localhost

pandeiro20:11:33

I found out when I ran a development build remotely and "accidentally" it connected to a local reload server and started live reloading my changes

pandeiro20:11:47

which actually seemed like a pretty awesome feature to our team

juhoteperi20:11:21

yes it connects to websocket server on localhost by default

juhoteperi20:11:49

but the files are reloaded from the same http server where the current page has been loaded

pandeiro20:11:39

would it make sense for it to default to the http server's host instead of localhost?

pandeiro20:11:57

that would enable for instance live reloading a page loaded on a mobile device

juhoteperi21:11:22

I think websocket server by default listens only on local interface, so ws-host is needed

juhoteperi21:11:31

and I think that is sane default

pandeiro21:11:56

for the server you can do :ip "0.0.0.0" though right? then it should listen on all

pandeiro21:11:47

default could continue to be localhost, and then there could be a boolean flag for trying to 'match' the js/window.location.host

pandeiro21:11:56

does that sound reasonable?

juhoteperi22:11:35

Nearly managed to automate Cljsjs package deploys, but I'll need the new GPG stuff to able to configure signing for CI