Skip to content

Instantly share code, notes, and snippets.

@dustingetz

dustingetz/.clj Secret

Last active April 26, 2021 11:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustingetz/a16847701c5ad4a23b304881e2a209a0 to your computer and use it in GitHub Desktop.
Save dustingetz/a16847701c5ad4a23b304881e2a209a0 to your computer and use it in GitHub Desktop.
(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