Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-theseus and grunt #78

Open
devitito opened this issue Mar 31, 2015 · 2 comments
Open

node-theseus and grunt #78

devitito opened this issue Mar 31, 2015 · 2 comments

Comments

@devitito
Copy link

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...

@alltom
Copy link
Member

alltom commented Apr 1, 2015

Sure! Sorry for the inconvenience.

@devitito
Copy link
Author

devitito commented Apr 1, 2015

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants