-
Notifications
You must be signed in to change notification settings - Fork 54
Description
This is a question about the "Interactive Development" section of the Hello World guide. I'm new to Pedestal and relatively new to Clojure, so please pardon any ignorance on display in this question.
In the interactive development section, we add various functions (e.g. start-dev
and stop-dev
) to hello.clj
. When I added these functions, however, it did not work as I expected and I would like to know if I did something wrong or if my expectations are wrong (or something else entirely).
I copied the whole shebang into hello.clj
to make sure I had the correct content. I then started the server in clj with:
(require 'hello)
(hello/start-dev)
This starts the server as expected. I then make a change to hello.clj
and run (hello/restart)
in the REPL. At this point, I expected the server to restart with the changes I made to hello.clj
, but it does not. It restarts the server, but does not reflect the changes I made. So every time I make changes, I need to restart the REPL every time. I'm confused because the prose under the heading here makes it sound as though we should not have to restart the REPL every time we make a change. Am I doing something wrong or are my expectations wrong (or something else entirely)?
Thanks in advanced for any insight!