This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-04
Channels
- # admin-announcements (33)
- # announcements (2)
- # beginners (10)
- # boot (200)
- # cider (25)
- # cljs-dev (13)
- # clojure (75)
- # clojure-canada (2)
- # clojure-czech (1)
- # clojure-dev (16)
- # clojure-japan (7)
- # clojure-russia (20)
- # clojurescript (206)
- # clr (1)
- # cursive (24)
- # datascript (1)
- # datomic (1)
- # editors (2)
- # hoplon (136)
- # ldnclj (54)
- # off-topic (9)
- # om (5)
- # onyx (8)
- # re-frame (66)
- # reagent (19)
- # yada (21)
how do I get my browser to automatically refresh with Ring? There is a section in the Web Server options that has :auto-refresh? but I don't know where to put it.
@grounded_sage: depends on how you run the app, i have this in main
function: (run handler {:port port ...})
(options passed to run
function with handler arg)
I'll put it up on GitHub to show everyone how I am running it. Basically using Stasis to create a static site but want auto-refresh in development.
@grounded_sage: you can put it inside your project.clj
too, like this
:ring {...
:auto-refresh? true
...}
hey, maybe you might need to install lein-ring
and add :auto-reload? true
on top of what @ergl said in your :ring
options in project.clj
@ergl: this is what I have.
:ring {:handler now.core/app
:auto-reload? true
:auto-refresh? true
Seems to be refreshing on save now. But isn't picking up the changes.I got an extremely stupid question, hence here. Do I have to (new Integer ⸰)
each time I want to cast a (valid) string to a number? Or is there a more readable approach?
here is the git repo.. still getting used to github @ergl @trybeee https://github.com/CommonCreative/now.git
Ok it reloads. But only when I save it in the style.clj and then the core.clj ... I'd like to somehow get the core.clj to auto-reload as well