-
-
Save dustingetz/a16847701c5ad4a23b304881e2a209a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns user | |
(:require | |
; No heavy deps please, for fast repl startup time | |
[hyperfiddle.etc.logging] | |
[taoensso.timbre :as timbre])) | |
; Repl process entry point | |
(timbre/set-level! :debug) ; REPL needs the logger config | |
(def mode (case (System/getenv "mode") | |
"dev" :dev | |
:?)) | |
(when (= mode :dev) | |
(future ;; don't block IDE/nrepl thread | |
(try | |
(require 'dev) ; heavy | |
(eval '(dev/start!)) ; avoid compiler exception | |
(catch Exception e | |
(timbre/error e))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment