Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 78 forks source link

running app.js with node-dev, forever, supervisor, nodemon etc #57

Closed tomotaro1065 closed 10 years ago

tomotaro1065 commented 11 years ago

Moved from Google groups

Posted by Ali Abbas

Hi, how can i use node-dev to run my node project in eclipse? i dont want to restart server after small changes....

tomotaro1065 commented 11 years ago

I didn't know about node-dev. We will consider that Nodeclipse will support it in the future version.

paulvi commented 11 years ago

There are several such tools node-dev https://github.com/fgnass/node-dev - 380 stars

It's an alternative to tools like supervisor 1100 stars or nodemon 1500 stars that doesn't require any configuration.

There is also forever https://github.com/nodejitsu/forever - 2700 stars Maybe we should do our own

paulvi commented 11 years ago

Somehow it is related to running CoffeeScript (we had no issue, so I modified #26 Add CoffeeFileWizard). For running .coffee, we should use not node executable, but some Node.js CLI (that we should install automatically if it is not present, like in #17 Install Express automatically enhancement )

coffee /path/to/script.coffee supervisor [options] <program> forever [action] [options] SCRIPT [script-options] node-dev foo.js

That is they mainly differ in what CLI to use.

paulvi commented 11 years ago

There is also nodemon #63

with similar syntax

nodemon --debug ./server.js 80

npdev453 commented 11 years ago

Looks like if in main app will be something like this... all will be ok :)

spawn("nodemon.cmd", ["main.js"]... and spawn("nodemon",[" --debug ./server.js 80"]...

paulvi commented 10 years ago

Nodemon is special case #118