This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-27
Channels
- # announcements (3)
- # babashka (16)
- # beginners (177)
- # calva (102)
- # cider (2)
- # clj-kondo (12)
- # clojars (10)
- # clojure (91)
- # clojure-argentina (3)
- # clojure-australia (5)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (73)
- # community-development (8)
- # cursive (9)
- # depstar (7)
- # fulcro (5)
- # helix (1)
- # introduce-yourself (1)
- # jobs-discuss (18)
- # lsp (32)
- # luminus (1)
- # malli (2)
- # music (4)
- # off-topic (20)
- # pathom (19)
- # polylith (15)
- # re-frame (4)
- # reagent (6)
- # ring (13)
- # sci (36)
- # shadow-cljs (7)
- # spacemacs (4)
- # sql (3)
- # tools-deps (112)
- # vim (21)
I have some environment variables listed in my dev-config.edn
file but they're all nil for some reason:
dev-config.edn
{:dev true
:dbtype "postgres"
:dbname "card_app"
:host "localhost"
:user "postgres"
:pass "pass"
:db-port 5432
:port 3000
;; when :nrepl-port is set the application starts the nREPL server on load
:nrepl-port 7000}
And here's where I'm referencing it in code:
(ns contact-services.db
(:require
[contact-services.config :refer [env]]
....)
(def cfg {:dbtype (:dbtype env) :dbname (:dbname env) :host (:host env) :user (:user env) :password (:pass env) :port (:db-port env)})
Specifically the error is Caused by: clojure.lang.ExceptionInfo: Unknown dbtype: , and :classname not provided. {:dbtype nil, :dbname nil, :host nil, :user nil, :password nil, :port nil}