简体   繁体   English

如何在没有命令promt的情况下使用主管运行Node js应用程序(即我想在Eclipse中运行)

[英]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.

相关问题 如何在测试范围内使用m2e(Eclipse / Maven)运行命令行程序,并具有测试依赖性? - How do I run a command line program using m2e (Eclipse/Maven) in the test scope, with test dependencies? 我如何让我的应用程序运行我在桌面上使用 eclipse 创建它,但它不会在我的笔记本电脑上运行? - how do i get my application to run i created it using eclipse on my desktop but it will not run on my laptop? 如何在没有 Eclipse 的情况下运行 Eclipse 项目? - How do I run an eclipse project without eclipse? 如何不使用csc文件在eclipse中运行coooja应用程序? - How to run coooja application in eclipse without using csc file? 我想知道如何在Eclipse中运行处理代码 - I want to know how you can run Processing Code in Eclipse 如何在命令提示符下运行Java应用程序(Eclipse)? - How to run a java application (eclipse) on command prompt? 如何在Eclipse中运行Node.js文件? - How to run Node.js files in eclipse? 当我删除软件包名称时,它可以从命令promt中正常运行,但是当我包含软件包名称时,它给我错误 - when i delete package name it run fine from command promt but when i include package name it give me error 如何使用Eclipse run命令更改stdin Stream? - How do I change stdin Stream with Eclipse run command? 如何获取 Eclipse 运行配置的命令行? - How do I get the command-line for an Eclipse run configuration?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM