How can I edit on my server files without restarting nodejs when i want to see the changes?

后端 未结 9 1125
天命终不由人
天命终不由人 2020-12-02 09:50

I\'m trying to setup my own nodejs server, but I\'m having a problem. I can\'t figure out how to see changes to my application without restarting it. Is there a way to edit

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 10:26

    Nodules is a module loader for Node that handles auto-reloading of modules without restarting the server (since that is what you were asking about):

    http://github.com/kriszyp/nodules

    Nodules does intelligent dependency tracking so the appropriate module factories are re-executed to preserve correct references when modules are reloaded without requiring a full restart.

提交回复
热议问题