This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-09
Channels
- # announcements (5)
- # babashka (1)
- # beginners (116)
- # calva (139)
- # cider (11)
- # clara (2)
- # clj-kondo (13)
- # clojure (247)
- # clojure-dev (18)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (41)
- # cursive (11)
- # data-science (2)
- # datomic (33)
- # emacs (10)
- # events (3)
- # fulcro (134)
- # graphql (9)
- # jackdaw (3)
- # jobs (1)
- # joker (20)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # malli (3)
- # music (1)
- # pedestal (7)
- # re-frame (25)
- # remote-jobs (7)
- # ring (7)
- # shadow-cljs (85)
- # spacemacs (13)
- # testing (2)
- # tools-deps (60)
- # xtdb (11)
- # yada (7)
I never used lein ring
back when I was using Leiningen anyway.
I just start my HTTP server in my -main
function and used to lein run
-- which is now clojure -m my.entry.point
@mgrbyte What do you actually rely on lein ring
for?
Hi, sorry for the delay in reply (long weekend away).
Using lein ring for starting a ring service (jetty-adapter under the hood i guess), with the init
and handler
hooks (creating the db connection in init
).
Currently using mount
.
I'm guessing I could remove the use of lein ring
just by doing mount/start
before jetty-adapter
in main, then handling db connectivity in some mw :thinking_face:
We use Component anyway so our HTTP server is wrapped up with a start
/ stop
lifecycle anyway, which makes it really easy to work with from the REPL.