nodemon 与 supervisor 项目自动重启工具

    nodemon will watch the files in the directory in which nodemon was started, and if any files change, nodemon will automatically restart your node application.

自动检测node项目文件改动,如果改动就自动重启项目,不需要手动重启了

nodemon

安装:npm install -g nodemon

用法:nodemon [your node app]

supervisor

安装:npm install -g supervisor

用法:supervisor [your node app]


supervisor有的项目不能正常使用(可能是node版本问题),可以改用nodemon


个人觉得如果不用debug的时候,我还是比较喜欢用powerShell控制台





你可能感兴趣的:(Supervisor,node,nodemon,项目自动重启)