Skip to content

Interactive Development

weavejester edited this page Sep 17, 2010 · 25 revisions

If you want to reload your source files without needing to restart your adapter, you need to:

  • Run your adapter in a background thread so it doesn't block your REPL.
  • Pass your handler function to the adapter as a var, so it will be updated when you reload the namespace.

For example:

(future (run-jetty (var my-handler) {:port 8080}))
Clone this wiki locally