Skip to content

How to restart a Express/Koa server? #49

@corysimmons

Description

@corysimmons

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions