This plugin lets you run a ring server application developed in a Polylith workspace.
Add the following alias to your deps.edn file in the root of your Polylith workspace:
:ring {:extra-deps {furkan3ayraktar/polylith-clj-deps-ring
{:git/url "https://github.com/furkan3ayraktar/polylith-clj-deps-ring.git"
:sha "LATEST"
:deps/root "projects/core"}}
:main-opts ["-m" "polylith.clj-deps-ring.cli.main"]}
In the configuration above, update the :sha
with the latest sha from this repository. Also do not forget to replace PROJ_NAME
with your project's name that is a ring server application. Once you have the alias run:
clj -M:ring start PROJ_NAME
The plugin allows you to run a ring server from your REPL as well. In order to run the server from your REPL, include the dependency and run:
(require '[polylith.clj-deps-ring.ring-server.interface :as ring-server])
(ring-server/start! "PROJ_NAME")
To stop a running server:
(require '[polylith.clj-deps-ring.ring-server.interface :as ring-server])
(ring-server/stop! "PROJ_NAME")