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
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.