On Wednesday, January 9, 2013 4:27:57 PM UTC-5, John Gabriele wrote:
>
> On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote:
>>
>>
>> and this in main.clj: 
>>
>>     (defn -main [& [port]] 
>>       (let [port (Integer. (or port (System/getenv "PORT") 5000))] 
>>         (jetty/run-jetty #'app {:port port :join? false})))) 
>>
>>
> Ok. That also meant I had to add the bare `jetty` to the ns's :require.
>
> Wait. No. That can't be right.

The `ns` in src/my_webapp/handler.clj should probably be:

~~~clojure
 (ns my-webapp.handler
  (:use compojure.core)
  (:require [compojure.handler :as handler]
            [compojure.route :as route]
            [ring.adapter.jetty :as jetty]))
~~~

Still though, need to add a :main to project.clj I think.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to