10 lines
229 B
Clojure
10 lines
229 B
Clojure
(ns blog.env)
|
|
|
|
(defn get-port
|
|
"Gets the environment variable PORT. If no variable, then the default port is 3000. Server will listen requests on this port."
|
|
[]
|
|
(or (-> (.-env js/process)
|
|
(.-PORT))
|
|
"3000"))
|
|
|