1. 安装
npm -g install supervisor
2. 如果使用了expres框架
需要修改启动方式 到 package.json中的
"scripts": {
"start": "supervisor ./bin/www"
}
"scripts": {
"start": "supervisor ./bin/www"
}
转载于:https://www.cnblogs.com/harryGao65535/p/5803743.html