gruf icon indicating copy to clipboard operation
gruf copied to clipboard

Question: is hot code reloading for other paths possible?

Open Freubert opened this issue 1 year ago • 1 comments

Is there a way to also reload other folders than app/rpc when using Rails? I can see that the Rails zeitwerk reloading is enabled for the known Rails folders (like app/models), but the Rails zeitwerk reload is obviously not triggered when the server runs on gruf and not Rails.

Freubert avatar Sep 29 '22 11:09 Freubert

@Freubert not at this time; it's on the TODO - for rails it looks like we'll have to hook into Rails.application.reloader (if defined, it's not available in all rails versions), and add an interception point to automatically enable reloading by wrapping the intercepted block.

splittingred avatar Sep 29 '22 14:09 splittingred