mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 16:07:19 +02:00
✨ Unify system binding on devenv repl and nrepl
This commit is contained in:
parent
c022b71b59
commit
aee516e642
1 changed files with 2 additions and 10 deletions
|
@ -94,22 +94,14 @@
|
||||||
(defn- start
|
(defn- start
|
||||||
[]
|
[]
|
||||||
(try
|
(try
|
||||||
(alter-var-root #'system (fn [sys]
|
(main/start)
|
||||||
(when sys (ig/halt! sys))
|
|
||||||
(-> main/system-config
|
|
||||||
(cond-> (contains? cf/flags :backend-worker)
|
|
||||||
(merge main/worker-config))
|
|
||||||
(ig/prep)
|
|
||||||
(ig/init))))
|
|
||||||
:started
|
:started
|
||||||
(catch Throwable cause
|
(catch Throwable cause
|
||||||
(ex/print-throwable cause))))
|
(ex/print-throwable cause))))
|
||||||
|
|
||||||
(defn- stop
|
(defn- stop
|
||||||
[]
|
[]
|
||||||
(alter-var-root #'system (fn [sys]
|
(main/stop)
|
||||||
(when sys (ig/halt! sys))
|
|
||||||
nil))
|
|
||||||
:stopped)
|
:stopped)
|
||||||
|
|
||||||
(defn restart
|
(defn restart
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue