-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do you get server side clj to auto refresh on file save ? #1
Comments
So if I use the dev methods from user.clj, and calling (reset), I get the following looping for ever: 2015-Jan-21 18:02:21 +0900 Modrzyks-MacBook-Pro.local ERROR [taoensso.sente] - Bad event: null any idea ? |
Hi Nicolas, Actually, I don't. I haven't properly configured the components module yet, I guess. I haven't gotten the server reload to work properly anyway. If you figure out how to do it, please let me know! And if you create a Pull Request fixing something, I'll be happy to integrate it. Best, |
I'm also trying to make it work. No success so far |
@hellonico I saw your post on taoensso/sente#96 |
@hellonico ? :-) |
Are you guys still having the server reload issue? Added following as dependency to project.clj In server.clj I added the following in :require Then plugged in Figwheel reloads the client and server seems to be picking up file change without stopping and rerunning I noticed that I still need to reload browser after making changes to server side codes.. Next step would be to figure out how to auto-reload server on file change without reloading browser.. |
Thanks for your input! |
Can anyone confirm that louixs's solution is working? I just cant make it work.. |
Hi @luposlip and @aaronpowered. Unfortunately for some reason it's just not working at the moment after a quick re-test now... I don't think there has been any changes but I was fairly sure it was working when I posted above. Sorry that I can't provide you with a good news for now.. Server-side change is not reflected unless I redo lein run now. |
Thank you @louixs . I got some progress now: |
Hi, luposlip points out that he might not have the component stuff worked out for server reload. It looks to me at least that ws.clj around line 60 is wrong: (stop [component]
(when ch-recv (async/close! ch-recv))
(log/debug "WebSocket connection stopped")
(:stop-the-thing component) ; <------should be ((:stop-the-thing-component))
(assoc component
:ch-recv nil :connected-uids nil :send-fn nil :ring-handlers nil))) That is, it is only accessing the stop function, not executing it. But that alone doesn't fix things. I think it might be that :stop-the-thing isn't set. But I am not very familiar with this code. |
Frontend is working great .. but can't figure out the server side just yet .. and my head hurts with "component" still :)
The text was updated successfully, but these errors were encountered: