remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.35k stars 1.74k forks source link

Migrating from PM2 to NodeMon #2219

Closed RUSHt closed 2 months ago

RUSHt commented 2 months ago

Expected behaviour

When I start an app.js using nodemon I get logs to ssh console, this works.

Actual behaviour

Should ssh drop then on reconnect there are no logs. (it's an EC2 instance).

Desired behaviour

$ nodemon app.js --logs // ie, restart logging

I've read the docs & can't see how to resume logging.

Peter

remy commented 2 months ago

nodemon doesn't run in the background in deamon mode - you'll need your own tooling for that. So when you disconnect your ssh connection to ec2, the process stops, and hence so do the logs.