From 98056e815a6dcd36d7377d3cd823a4aaf5a3d9fa Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 17 Feb 2018 13:55:55 -0200 Subject: Initial commit --- env/prod/clj/queue_api/env.clj | 11 +++++++++++ env/prod/resources/config.edn | 2 ++ env/prod/resources/logback.xml | 24 ++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 env/prod/clj/queue_api/env.clj create mode 100644 env/prod/resources/config.edn create mode 100644 env/prod/resources/logback.xml (limited to 'env/prod') diff --git a/env/prod/clj/queue_api/env.clj b/env/prod/clj/queue_api/env.clj new file mode 100644 index 0000000..c05d732 --- /dev/null +++ b/env/prod/clj/queue_api/env.clj @@ -0,0 +1,11 @@ +(ns queue-api.env + (:require [clojure.tools.logging :as log])) + +(def defaults + {:init + (fn [] + (log/info "\n-=[queue-api started successfully]=-")) + :stop + (fn [] + (log/info "\n-=[queue-api has shut down successfully]=-")) + :middleware identity}) diff --git a/env/prod/resources/config.edn b/env/prod/resources/config.edn new file mode 100644 index 0000000..b48cfbd --- /dev/null +++ b/env/prod/resources/config.edn @@ -0,0 +1,2 @@ +{:production true + :port 3000} diff --git a/env/prod/resources/logback.xml b/env/prod/resources/logback.xml new file mode 100644 index 0000000..3829eff --- /dev/null +++ b/env/prod/resources/logback.xml @@ -0,0 +1,24 @@ + + + + + log/queue-api.log + + log/queue-api.%d{yyyy-MM-dd}.%i.log + + 100MB + + + 30 + + + UTF-8 + %date{ISO8601} [%thread] %-5level %logger{36} - %msg %n + + + + + + + + -- cgit v1.2.3