Closed alexhawkins closed 8 years ago
It's the problem of caching files, the first time you require the UserType.js, the file will be cached by NodeJs. So, it's always the same even though it has been changed. For a quick fix, you always have to use requireUncached()
function to require files.
I have planned to move from Gaze to Nodemon very soon. This will help reloading the server without worrying about caching files.
Fixed by 48a533c.
@lvarayut Thank you very much :)
My current directory structure ( see this first to understand how i have things set up ) Changes to schema.js work fine but I don't really make changes there. My current schema.js file Gaze recognizes changes in other files but the schema.js is only updated when the schema.js file is changed. I'm using:
For example, if I make a change in UserType.js (see above image for directory structure) the schema.js is not updated with the change.
Any ideas on how to handle this? I'd like everything to hot reload on any change. Currently I'm having to stop and restart the server which is pretty time consuming. Help would be much appreciated.