[英]How to run node js application using supervisor without command promt(i.e I want run in eclipse)
I am new for node js application and started learning node js with express framework.I want application will restart if some changes occur in js files.I have tried using supervisor with command prompt.It working fine. 我是Node JS应用程序的新手,并开始使用Express Framework学习Node JS。我希望如果JS文件中发生某些更改,应用程序将重新启动。我尝试在命令提示符下使用Supervisor。
First I have installed supervisor globally using following command. 首先,我使用以下命令在全球范围内安装了主管。
npm install supervisor -g npm安装主管-g
Then I run app.js(ie application start file) using supervisor in command mode. 然后我在命令模式下使用超级用户运行app.js(即应用程序启动文件)。
supervisor app.js 主管app.js
Then I have change js file and refresh application.The changes are made automatically without restarting. 然后我有更改js文件和刷新应用程序。更改是自动进行的,无需重新启动。
But now i want run in eclipse?I dont know how to setup supervisor in eclipse and how to run application using supervisor in eclipse. 但是现在我想在Eclipse中运行?我不知道如何在Eclipse中设置超级用户以及如何在Eclipse中使用超级用户运行应用程序。
I am using eclipse juno release 2 . 我正在使用eclipse juno release 2。
Read http://www.nodeclipse.org/history 阅读http://www.nodeclipse.org/history
Since 0.17 Run with Node Monitor is hidden and TCF Terminals are recommended to launch supervisor, forever, nodemon ...etc 由于隐藏了0.17与节点监视器一起运行,并且建议使用TCF终端永久启动超级用户,主管,nodemon等
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.