Express中supervisor使用

supervisor
在开发过程中,每次修改代码保存后,我们都需要手动重启程序,才能查看改动的效果。使用 supervisor 可以解决这个繁琐的问题,全局安装 supervisor:

npm install -g supervisor

运行 supervisor --harmony index 启动程序,如下所示:

supervisor 会监听当前目录下 node 和 js 后缀的文件,当这些文件发生改动时,supervisor 会自动重启程序。

猜你喜欢

转载自blog.csdn.net/qq_41950190/article/details/103064493