🎉 Add version string parsing.

This commit is contained in:
Andrey Antukh 2020-12-04 16:01:33 +01:00 committed by Alonso Torres
parent ac2310f71f
commit 28a2df96ff
6 changed files with 72 additions and 29 deletions

View file

@ -11,6 +11,7 @@
"A configuration management."
(:require
[app.common.spec :as us]
[app.common.version :as v]
[app.util.time :as dt]
[clojure.spec.alpha :as s]
[cuerdas.core :as str]
@ -197,6 +198,9 @@
(def default-deletion-delay
(dt/duration {:hours 48}))
(def version
(delay (v/parse "%version%")))
(defn smtp
[cfg]
{:host (:smtp-host cfg "localhost")

View file

@ -9,6 +9,8 @@
(ns app.main
(:require
[app.config :as cfg]
[clojure.tools.logging :as log]
[mount.core :as mount]))
(defn- enable-asserts
@ -26,15 +28,13 @@
(defn run
[_params]
(require 'app.config
'app.srepl.server
(require 'app.srepl.server
'app.migrations
'app.worker
'app.media
'app.http)
(mount/start))
(mount/start)
(log/infof "Welcome to penpot! Version: '%s'." (:full @cfg/version)))
(defn -main
[& _args]