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:
parent
c022b71b59
commit
aee516e642
1 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue