Improve configuration loading.

Removing unnecesary code.
This commit is contained in:
Andrey Antukh 2020-02-03 09:53:46 +01:00
parent c1dee0dbf7
commit b98d8519d4
2 changed files with 37 additions and 63 deletions

View file

@ -4,6 +4,7 @@
[promesa.core :as p]
[cuerdas.core :as str]
[mount.core :as mount]
[environ.core :refer [env]]
[datoteka.storages :as st]
[uxbox.services.mutations.profile :as profile]
[uxbox.services.mutations.projects :as projects]
@ -19,7 +20,7 @@
(defn state-init
[next]
(let [config (cfg/read-test-config)]
(let [config (cfg/read-test-config env)]
(-> (mount/only #{#'uxbox.config/config
#'uxbox.core/system
#'uxbox.db/pool