Auto reloading a Sails.js app on code changes?

后端 未结 8 768
花落未央
花落未央 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 18:50

    Better you use

    npm install -g nodemon
    

    i am using this, and it will helps to improve my developing speed. no need to edit any files for this one!.

    after installation

    nodemon app.js
    

提交回复
热议问题