Permalink
Browse files

don't use gen-class in this library,

as it won't work properly when used by an application.
  • Loading branch information...
olivermg committed Feb 11, 2019
1 parent 086399e commit 4d8efd9d7c82114bc99f0969b87cd9439a7bfef1
Showing with 2 additions and 5 deletions.
  1. +1 −3 project.clj
  2. +1 −2 src/ow/main.clj
@@ -13,6 +13,4 @@
[org.clojure/clojure "1.10.0"]
[org.clojure/tools.logging "0.4.1"]
[spootnik/signal "0.2.2"]
[trptcolin/versioneer "0.2.0"]]

:aot [ow.main])
[trptcolin/versioneer "0.2.0"]])
@@ -1,11 +1,10 @@
(ns ow.main
(:gen-class)
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[ow.app :as oa]
[signal.handler :as sig]))

(defn -main [& args]
(defn main [& args] ;; invoke this from your project's -main entrypoint
(let [profile (-> (or (System/getenv "PROFILE")
"prod")
str/lower-case

0 comments on commit 4d8efd9

Please sign in to comment.