Skip to content

Instantly share code, notes, and snippets.

@souenzzo
Created August 30, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souenzzo/02a87bbfbc2cdd291a111716d8b6d0a1 to your computer and use it in GitHub Desktop.
Save souenzzo/02a87bbfbc2cdd291a111716d8b6d0a1 to your computer and use it in GitHub Desktop.
(ns exemplo
(:require [io.pedestal.http :as http]))
(def routes ::invalid)
(def server-build-time
(-> {::http/type :jetty
::http/routes routes
::http/port 8080}
http/default-interceptors
http/create-server))
(defn -main-build-time
[& _]
(http/start server-build-time))
(defn server-runtime
[]
(-> {::http/type :jetty
::http/routes routes
::http/port 8080}
http/default-interceptors
http/create-server))
(defn -main-runtime
[& _]
(http/start (server-runtime)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment