|
@@ -1,8 +1,17 @@
|
|
|
(ns example.main
|
|
|
- (:require [example.core :as core])
|
|
|
+ (:require [example.core :as core]
|
|
|
+ [environ.core :refer [env]]
|
|
|
+ ;[clojure.tools.cli :refer [parse-opts]]
|
|
|
+ )
|
|
|
(:gen-class))
|
|
|
|
|
|
; this file exists as a shim between boot loading and reloadable core code. if the need to AOT goes away, this can too.
|
|
|
|
|
|
+(def cli-options [["-p" "--port Port" "Port Number"
|
|
|
+ :default 3000
|
|
|
+ :parse-fn #(Integer/parseInt %)]])
|
|
|
+
|
|
|
+
|
|
|
(defn -main []
|
|
|
- (core/start!))
|
|
|
+ (let [port (Integer/parseInt (env :port))]
|
|
|
+ (core/start! port)))
|