(ns auto-ap.server
  (:require [auto-ap.background.mail :refer [always-process-sqs]]
            [auto-ap.handler :refer [app]]
            [config.core :refer [env]]
            [ring.adapter.jetty :refer [run-jetty]])
  (:gen-class))

 (defn -main [& args]
   (let [port (Integer/parseInt (or (env :port) "3000"))]
     (future (always-process-sqs))
     (run-jetty app {:port port :join? false})))
