0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

Unify system binding on devenv repl and nrepl

This commit is contained in:
Andrey Antukh 2023-11-15 13:35:34 +01:00
parent c022b71b59
commit aee516e642

View file

@ -94,22 +94,14 @@
(defn- start
[]
(try
(alter-var-root #'system (fn [sys]
(when sys (ig/halt! sys))
(-> main/system-config
(cond-> (contains? cf/flags :backend-worker)
(merge main/worker-config))
(ig/prep)
(ig/init))))
(main/start)
:started
(catch Throwable cause
(ex/print-throwable cause))))
(defn- stop
[]
(alter-var-root #'system (fn [sys]
(when sys (ig/halt! sys))
nil))
(main/stop)
:stopped)
(defn restart