Skip to content

Instantly share code, notes, and snippets.

@rociiu
Created July 17, 2012 13:26
Show Gist options
  • Save rociiu/3129387 to your computer and use it in GitHub Desktop.
Save rociiu/3129387 to your computer and use it in GitHub Desktop.
(ns hello.core
(:use ring.adapter.jetty)
)
(defn app [req]
{:status 200
:headers {"Content-Type" "text/plain"}
:body "Hello from Clojure!\n"})
(defn -main []
(let [port (Integer/parseInt (System/getenv "PORT"))]
(run-jetty app {:port port})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment