سؤال

I am starting my server in the repl using

(use 'ring.util.serve)
(serve my-app/handler)

How do I stop the server once started using it.

Thanks, Murtaza

هل كانت مفيدة؟

المحلول

ring.util.serve also contains stop-server which can be used to stop the server. So this should work for you:

(stop-server)
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top