You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a suggestion, since I have found it rather useful for developing & testing. I'd send a PR, but, as a beginner, am not confident enough in my clojure skills to tell if this is the right way to do it.
(:import org.h2.tools.Server)
;...
(defonceadmin (Server/createWebServer (into-array ["-ifExists""-webPort""3001"])))
(defnstart-admin []
(let [port (.getPort admin)]
(if (.isRunning admin false)
(timbre/error"H2 web console already running on port" port)
(do (.start admin)
(timbre/info"H2 web console started on port" port)))))
(defnstop-admin []
(if (.isRunning admin false)
(do (.stop admin)
(timbre/info"H2 web console stopped"))))
Note the H2 console apparently supports other DBs as well.
The text was updated successfully, but these errors were encountered:
@polymeris I recently factored http and repl servers into standalone plugins, for example the nrepl is now provided by luminus-nrepl. I think it would make sense to make this another plugin that could be added as a dependency and loaded on startup.
Just a suggestion, since I have found it rather useful for developing & testing. I'd send a PR, but, as a beginner, am not confident enough in my clojure skills to tell if this is the right way to do it.
Note the H2 console apparently supports other DBs as well.
The text was updated successfully, but these errors were encountered: