pedestal

gtbono 2024-06-08T15:19:24.064189Z

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 :/

hlship 2024-06-08T16:29:50.498479Z

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

Jon Eskin 2024-06-08T01:08:28.830189Z

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.

Jon Eskin 2024-06-08T11:54:51.517239Z

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.

hlship 2024-06-25T00:02:59.150539Z

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.