Fork me on GitHub
#pedestal
<
2024-06-08
>
Jon Eskin01:06:28

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 Eskin11:06:51

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.

hlship00:06:59

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.

gtbono15:06:24

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

hlship16:06:50

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