How do I stop jetty server in clojure?

I usually have a line in my Ring app that looks like the following:

(defonce server (run-jetty #'my-app {:port 8080 :join? false}))

This prevents locking up the REPL. It also allows me to recompile this file without worrying that my server will get redefined. It also lets you interact at the REPL like so:

user=> (.stop server)

and

user=> (.start server)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)