On 16 February 2011 16:10, Rasmus Svensson <[email protected]> wrote:
> (defn -main []
>  (run-jetty #'my-app {:port 8080, :join? false}))

Have you tried using ring-serve
(https://github.com/weavejester/ring-serve)? It has a few advantages
over running the run-jetty adapter directly. In particular:

* It ensures `swank.core/break` works when used inside a handler
* It uses wrap-stacktrace to give you pretty development stack traces
* It automatically finds a free port and opens a web browser
* It's safe to run multiple times (uses an atom to keep track of
whether it's already running)

- James

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

Reply via email to