theseus icon indicating copy to clipboard operation
theseus copied to clipboard

node-theseus and grunt

Open devitito opened this issue 10 years ago • 2 comments

Hi! I created a grunt task to watch my files and restart node-theseus in case any of my file is changed. I use no-demon and I launch node-theseus within the exec option of grunt-nodemon (https://github.com/ChrisWren/grunt-nodemon#exec)

The problem is when I want to stop debugging. Somehow after only 2 process.exit caught grunt exits and node-theseus keeps running and the port 888 is still in use. That means that I can't start another debug session with node-theseus.

In node-theseus, you hard code the number of time to receive process.exit before exiting: if (++exitCount >= 3) { ...

Would it be possible to pass this value (3) as a parameter? It would fix my issue...

devitito avatar Mar 31 '15 10:03 devitito

Sure! Sorry for the inconvenience.

alltom avatar Apr 01 '15 03:04 alltom

Thanks! :)

devitito avatar Apr 01 '15 18:04 devitito