Closed flyingmachine closed 7 years ago
It looks like integrant.core/resume halts the server, but resume-key thinks the config hasn't changed so it doesn't restart it
It looks like this is an issue with Integrant. What we probably want to do is change this line:
(halt! system (missing-keys system keys))
Which halts all missing keys and the keys that depend on them. Instead, it should probably be something more like:
(halt! (apply dissoc system (missing-keys system keys)))
But I'll need to think about the consequences and make sure I have the logic right.
This should be fixed by Integrant 0.4.1. I've updated the dependencies for server.http.jetty to include that, and released server.http.jetty 0.1.5.
awesome! so far so good :)
I'm working with the example app and found that if you suspend the system, change the config by removing the example route, and resume the system, the HTTP server will stop and not restart. To repro:
Here's what my config.edn looks like after I edit it: