Giter Site home page Giter Site logo

dont exit on error about nodemon HOT 8 CLOSED

tobsn avatar tobsn commented on May 5, 2024
dont exit on error

from nodemon.

Comments (8)

remy avatar remy commented on May 5, 2024

It is, but I'd rather add some throttling in case it was a startup error, rather than a runtime error. i.e. if it were breaking on startup, it would go in to a nasty loop, constantly trying to restart.

from nodemon.

tobsn avatar tobsn commented on May 5, 2024

on startup it can fail instantly - of course.
but while its running it should just throw the error and stop instead of existing until a file change and than retry.

from nodemon.

remy avatar remy commented on May 5, 2024

Aye, but from nodemon's point of view, it doesn't know any different. I've already got a version working, I just need to give it some throttling, just to say if the app was just started, hold off trying to restart it - or maybe it the app was just started, don't restart, but if it's been running for a little while, automatically try to restart.

from nodemon.

tobsn avatar tobsn commented on May 5, 2024

well... doesnt it check file changes in the file system to trigger the restart?
start -> run -> filechange -> restart -> filechange with error -> display error and stop -> filechange -> restart.

from nodemon.

remy avatar remy commented on May 5, 2024

Keep nodemon running even if app crashes, and have it wait for a file change before starting again. Closed by 77e2f36

from nodemon.

remy avatar remy commented on May 5, 2024

How's that look :)

from nodemon.

tobsn avatar tobsn commented on May 5, 2024

haha, nice. well done.
thanks :)

from nodemon.

ryancat avatar ryancat commented on May 5, 2024

I had an issue with nodemon exits with code 2.
process failed, unhandled exit code (2)

A simple fix is in faq.md https://github.com/remy/nodemon/blob/master/faq.md#error-process-failed-unhandled-exit-code-2

from nodemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.