如何在Google Cloud Shell中一次又一次地使用Node js运行新项目而不使用run命令运行文件
发布于 2018-12-26 04:38:53
您可以按照StackOverflow answer中的说明安装监管模块。
要安装supervisor模块,请运行以下命令:
npm安装supervisor -g
然后使用以下命令运行您的应用程序:
supervisor -e html,js app.js
这将监视所有.html和.js文件的任何更改,并更新您的网页内容,而无需重新启动应用程序。当然,您需要重新加载网页。
https://stackoverflow.com/questions/53922042
复制相似问题