This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-10
Channels
- # announcements (4)
- # beginners (111)
- # boot (34)
- # cider (67)
- # cljdoc (10)
- # clojure (90)
- # clojure-dev (37)
- # clojure-europe (3)
- # clojure-gamedev (3)
- # clojure-italy (18)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-spec (24)
- # clojure-uk (59)
- # clojurescript (41)
- # cursive (32)
- # datomic (31)
- # emacs (21)
- # figwheel (1)
- # figwheel-main (2)
- # fulcro (43)
- # graalvm (6)
- # graphql (3)
- # jobs-discuss (3)
- # kaocha (1)
- # nyc (1)
- # off-topic (22)
- # pathom (10)
- # pedestal (11)
- # re-frame (9)
- # reitit (17)
- # shadow-cljs (15)
- # spacemacs (13)
- # sql (6)
- # testing (5)
- # tools-deps (3)
- # vim (13)
- # yada (1)
@wei
::http/file-path "target/public"
<< files not in your classpath
::http/resource-path "public"
<< files in your classpath
::http/mime-types mime/default-mime-types
<< useful (require '[ring.util.mime-type :as mime])
@souenzzo thanks! and how does that file path get associated with a URL route to serve it? sorry, fairly new to pedestal
Using ::http/resource-path "public"
with :paths ["src" "resources"]
(in deps.edn) or :resource-path ["resources"]
(in project.clj)
resources/public/app.html
will be available in :8080/app.html
I think that it first try to find a file, then try to find a route in your router.
@souenzzo is correct (thanks!), here are some more details. When default interceptors are added, if the ::http/resource-path
is present in the service map, then an interceptor wrapping the ring resource
middleware is conj’d onto the interceptor chain. This interceptor executes it’s :enter
impl prior to routing.
hi all, i've been playing around with vase and i'm wondering if there's a way for the pedestal service to reload the configuration if i change a dynamic interceptor in the fern file. e.g., i realize there is an error with my query and i want to fix it. can i do that and have the change take effect without having to stop and start vase?
#pedestal , Hi everyone. I tried to bump the version of io.pedestal/pedestal.service
in my project from 0.5.3 -> 0.5.4 and my service stops responding to requests on the SSL port. Anyone has any clues what could be causing this?
yes, I believe it was that version that introduced a new behavior whereby the ssl port listener also now binds to an explicit ip address
Yeah, it’s called out here as a breaking change: https://github.com/pedestal/pedestal/blob/master/CHANGELOG.md#054---june-29-2018
What should I set the ::http/port value to?
hey, I actually hadn’t configured the ::http/host, once I set it to 0.0.0.0 things got going again. Thanks for the help
hey, I actually hadn’t configured the ::http/host, once I set it to 0.0.0.0 things got going again. Thanks for the help