Fork me on GitHub

@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/" 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 ?

Michaël Salihi20:03:40

@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.