Auto reloading a Sails.js app on code changes?

后端 未结 8 771
花落未央
花落未央 2020-11-30 18:38

Currently is seems that for any code change in a sails.js app you have to manually stop the sails server and run sails lift again before you can see the changes

8条回答
  •  情话喂你
    2020-11-30 19:03

    If you're using Sails 0.11, you can install this hook to automatically reload when you change models or controllers (views do not require reloading):

    npm install sails-hook-autoreload
    

    https://www.npmjs.com/package/sails-hook-autoreload

提交回复
热议问题