do i have to restart figwheel if i change the project.clj file?
anyway, i don't get why I see Figwheel Server: Resource not found just doing what's in the quick start
and when i google for it, there is nothing
@ashnur is this your first clojurescript project? Could you try setting up a project using a leiningen template, and see if that starts up correctly?
@kauko yes. first one, I am following this: https://github.com/bhauman/lein-figwheel/wiki/Quick-Start and it gives me errors from the start
figwheel has to work because other stuff worked before, like https://github.com/phosphene/d3-figwheel-demo
The quick start says load from the file system right?
@ashnur: ^
I don't know what do you mean by that, I don't remember
The URL in your browser is file:// ...
definitely is not
right, i found the part you mention, i did miss this, i can't even do it, i am working through ssh, who thought this will be a good idea
eh
Well that's how the quick start says to load index.html
every time i try clojure, there are a gazzilion little things that just tell me no, no, no, no
right, so the quick start is unusable for me
The quick start doesn't assume that you will be working through ssh
Why would the quick start assume that?
so, pls don't think this as if i expect figwheel to fir my needs, i don't. what i am saying is that there are only reasonable difficulties both in number and in nature that i can be expected to get over with when i am trying to learn something
if i were to do something i already know, configuration problems were ok. but having to deal with it from the start is hard
then
i don't say it should assume that i work through ssh, it just shouldn't expect me to load the file through the file system, if it already has a live server in it. it makes no sense.
Let's solve the immediate problem
Launch a static server at the root of the project
Python -m SimpleHTTPServer 8000
ok, that was python2, but it works 🙂
socket.cljs?rel=1480268448829:63 WebSocket connection to '<ws://localhost:3449/figwheel-ws/dev>' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
that's a very good gist, thanks
that localhost has to be an ip
Ok now we have to edit the config
project.clj?
Yep
where is the reference for what i can use there?
Change :figwheel true
To :figwheel {:websocket-host your up}
It's in the readme under client config
I believe you it's there 😄
so, i had to restart figwheel after config change
oh, actually, it's still not working
still says localhost
Ok probably cached
Shift reload?
https://gist.github.com/ashnur/8294b2645bb6733a845dcc981dce52f9
I have disabled cache when I have developer tools open
so i doubt
It can still happen and does
yeah, of course you were right
why does this happen?
Figwheel: socket connection established
are you typing from a phone?
Ok now here's the big lesson, you can run your own server and application anyway you like and can still connect to figwheel
Yeah no fun
yeah, look, sorry to do this to you. it can totally wait
it could wait, because my first question you of course solved now
and yeah, i know that clojurescript is this dreamland where nothing is really set in stone unless basically there was no one yet to explore it
just hard to get there 😄