Unfortunately most of the examples don't illustrate how to set this is for
brevity's sake. In my own code I do the following:
(defonce *app* (atom nil))
(defn start-app []
(if (not (nil? @*app*))
(stop @*app*))
(reset! *app* (run-server {:port 8080}
"/*" (servlet app-routes))))
(defn stop-app []
(stop @*app*))
This way if I load this code several times I don't lose a reference to the
current running app. It kills the previous app if I start a new one. And I
can stop the current one.
David
On Fri, Feb 19, 2010 at 11:30 AM, Brian Wolf <[email protected]> wrote:
> Hi,
>
> Is there something like a (stop-server) I don't see anything here
>
> http://compojure.org/docs
>
> thanks
> Brian
>
> --
> 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]<clojure%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
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