diff options
author | Adrian Batos-Parac <adrian.batos-parac@amdocs.com> | 2018-02-22 15:50:01 -0500 |
---|---|---|
committer | Adrian Batos-Parac <adrian.batos-parac@amdocs.com> | 2018-02-22 15:50:01 -0500 |
commit | d6a36b1577b3220f7822ae655d57fa6a1dded5a6 (patch) | |
tree | 0adf5d8b2f65b0fc6129a42c3fd0309bff9d8700 /prod | |
parent | 030236e7268ca08aeae13acec04e3efc2687b2e6 (diff) |
Initial Commit of Gallifrey
Commit the initial set of code for the Gallifrey offering to ONAP
Change-Id: Id1d3bd2bda5ab530682b6646f2cb0414baf671a5
Issue-ID: AAI-797
Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'prod')
-rw-r--r-- | prod/gallifrey/server.clj | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/prod/gallifrey/server.clj b/prod/gallifrey/server.clj new file mode 100644 index 0000000..cefa6b5 --- /dev/null +++ b/prod/gallifrey/server.clj @@ -0,0 +1,14 @@ +(ns gallifrey.server + (:require [gallifrey.config :refer [config]] + [gallifrey.handler :refer [handler]] + [config.core :refer [env]] + [org.httpkit.server :refer [run-server]] + [integrant.core :as ig]) + (:gen-class)) + +(defn -main [& args] + (let [port (Integer/parseInt (or (env :http-port) "8081"))] + (println "Listening on port" port) + (ig/init (config {:db-server {:host (or (env :db-host) "rethinkdb") + :port 28015} + :http-port port})))) |