This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-08
Channels
- # announcements (2)
- # babashka (6)
- # beginners (40)
- # calva (23)
- # clojure (30)
- # clojure-europe (7)
- # clojure-gamedev (8)
- # clojure-losangeles (1)
- # clojure-sweden (2)
- # clojurescript (184)
- # datahike (1)
- # dev-tooling (2)
- # hyperfiddle (3)
- # music (1)
- # nbb (1)
- # off-topic (14)
- # pedestal (5)
- # polylith (8)
- # rdf (1)
- # tools-build (14)
- # yamlscript (1)
Hello! I saw on reddit that there should be a run command added to http://pedestal.io/pedestal/0.7/guides/embedded-template.html to run the service from the command line.
I hacked this in by:
• adding dependencies for service/jetty dependencies to :build section of deps.edn
• adding src path to :build section of deps.edn
,
• adding :requires to build.clj for io.pedestal.http and the service to build.clj
• adding a "run" function that starts the server to build.clj
I would be interested to hear if there's a smarter way to go about this! I'm very inexperienced with deps.edn/tools.build/pedestal in general.
I'm going to look into extending the template with a run alias (e.g., clj -X:run
) to run the service via it's main entrypoint.
someone here using pedestal with reitit? is it possible to get a dev workflow where routes are evaluated in every change? I need to stop and start my components for it to refresh :/
I'm not familiar with retit, but Pedestal 0.7 makes it easier to run continuously w/o restarts: http://pedestal.io/pedestal/0.7/guides/live-repl.html#_using_routes_from