Skip to content

After nodemon restarts gh-core causes it to stall out, requiring manual intervention #101

@pajtai

Description

@pajtai

STR:
use gh core in a project (eg. grasshopper-demo)
change a file

expected:
app restarts

actual:
nodemon stops the app and you have to type rs to restart:

Shutting down database connection
Database connection disconnected
[3/24/2017 14:29:49:857][GRASSHOPPER][DEFAULT][INFO] Database connection disconnected
Database connection disconnected
[nodemon] clean exit - waiting for changes before restart

probable relevant areas:
https://github.com/grasshopper-cms/grasshopper-core-nodejs/blob/master/lib/grasshopper.js#L74
https://github.com/grasshopper-cms/grasshopper-core-nodejs/blob/master/lib/middleware/system/shutdown.js
https://github.com/grasshopper-cms/grasshopper-core-nodejs/blob/c5cf3a2aaad20b70830bf9abd1a3a311e289e23a/lib/db/mongodb/close.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions