This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-07
Channels
- # announcements (3)
- # babashka (28)
- # bangalore-clj (6)
- # beginners (91)
- # calva (14)
- # cider (7)
- # clojars (6)
- # clojure (24)
- # clojure-europe (3)
- # clojure-nl (5)
- # clojure-uk (134)
- # clojuredesign-podcast (1)
- # clojurescript (16)
- # cryogen (3)
- # cursive (3)
- # data-science (1)
- # events (1)
- # fulcro (7)
- # jobs-discuss (1)
- # luminus (4)
- # malli (1)
- # re-frame (7)
- # shadow-cljs (74)
- # spacemacs (23)
- # sql (6)
- # tools-deps (2)
@jmckitrick passwords. Just good practice
Hi, please forgive the n00b question, but I just created a new luminus app: lein new luminus hello-luminus
and then ran cider-jack-in
and (start)
from the repl. When I edit the home page handler like so:
(defn home-page [request]
{:status 200 :body "hello world"}
;; (layout/render request "home.html" {:docs (-> "docs/docs.md" io/resource slurp)}))
And then run cider-ns-refresh I would expect that when I go to http://localhost:3000 I should see "hello world" but the previous handler still appears to be in effect.
Is there something I'm missing ?@d0c0nnor Hi, cider-ns-refresh
is not necessary, just save the file and Luminus (more particularly ring.middleware.reload
locate in dev_middleware file will handle the code reloading for you. Maybe try with the headers in your response map {:status 200 :headers {"Content-Type" "text/html"} :body "Hello boy!"}
Hi there, thanks for your response. The issue isn't related to the lack of headers - when I add the headers I still have the problem of the handler not being reloaded. It might be something related to my local environment - I don't really have time to dig into it, just wanted to check that it wasn't expected behaviour.