Brian Wolf wrote:
Is there something like a (stop-server) I don't see anything here
Are you just looking for compojure/stop?
$ cat hello.clj
(ns hello)
(use 'compojure)
(defroutes rts
(GET "/"
(html [:h1 "Hello World"]))
(ANY "*"
(page-not-found)))
(defserver srv {:port 8080} (servlet rts))
$ repl
Clojure 1.2.0-master-SNAPSHOT
user=> (use 'compojure)
nil
user=> (use 'hello)
2010-02-20 14:10:24.291::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
nil
user=> (start srv)
2010-02-20 14:10:32.269::INFO: jetty-6.1.15
2010-02-20 14:10:32.294::INFO: Started [email protected]:8080
nil
user=> (stop srv)
nil
--
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