Created
July 17, 2012 13:26
-
-
Save rociiu/3129387 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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