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

How to restart a Express/Koa server? #49

Closed
corysimmons opened this issue Aug 16, 2017 · 4 comments
Closed

How to restart a Express/Koa server? #49

corysimmons opened this issue Aug 16, 2017 · 4 comments

Comments

@corysimmons
Copy link

I'm trying to watch all my src files and rerun Koa when a file is changed, but keep hitting Error: listen EADDRINUSE :::3000.

"chokidar": "chokidar '**/*.js' -c 'node dist/server'"

Any ideas how to force Koa to die before running node dist/server?

@heikkipora
Copy link
Collaborator

I'm closing this as it's more of a Koa question than chokidar-cli (and besides, it's one year old..)

@corysimmons
Copy link
Author

Not a Koa question. More of a question with killing child processes.

https://github.com/kimmobrunfeldt/chokidar-cli/pull/29 fixes it and should be reviewed/merged.

@zanona
Copy link

zanona commented Oct 12, 2018

I believe this should be reopened and #29 given due attention?

@corysimmons
Copy link
Author

https://www.npmjs.com/package/chokidar-cli-infanticide is just #29 merged and worked well for me.

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

3 participants