ring-swagger & compojure-api
plins 2018-05-18T15:33:07.000369Z

in ring id specify the port like this

(defn -main []
  (run-jetty app {:port (or (env/env :port)
not sure how to do with c-api

ikitommi 2018-05-18T18:20:15.000506Z

@plins c-api emits justs a ring handler, which is, in your case the app. For production, I would recommend taking a look either at Luminus template (with +swagger) http://www.luminusweb.net/ or an example app https://github.com/yogthos/memory-hole/tree/master/src/clj/memory_hole. Both contain a main function where you can set the port easily. Hope this helps.