Comments (8)
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.
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.
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.
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.
Keep nodemon running even if app crashes, and have it wait for a file change before starting again. Closed by 77e2f36
from nodemon.
How's that look :)
from nodemon.
haha, nice. well done.
thanks :)
from nodemon.
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)
- nodemon called as a subprocess within a subprocess breaks stdin after SIGINT HOT 5
- Nodemon TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 4
- Nodemon the `punycode` module is deprecated in node js 21 HOT 2
- ts-node should not be default when `--import` flag is present HOT 6
- [Feature Request] Add a quit (repl) command HOT 7
- says server restarting but changes are not reflected on the terminal HOT 13
- - `nodemon -v`:
- Nodemon config file different than json HOT 4
- New Feature Request : adding a very simple way to handle node projects with ES Module HOT 2
- Nodemon Getting Stuck in the Restarting Phase HOT 24
- Force a full restart? HOT 6
- is there a way to delay before re-spawn / re-execution? otherwise CPU goes to 100% HOT 1
- Restart event calls start event as well when files change HOT 3
- Passing an array into ext config HOT 4
- nodemon is not restarting server automatically HOT 1
- Ability not to signal the whole subtree of a process HOT 13
- Restart not firing beyond deletion of directory under watch, when this directory structure is recreated (on Ubuntu 22.04) HOT 10
- Nodemon ignores `--ext` argument HOT 3
- not working with Node.js version 20.12.x HOT 12
- Unable to enable logs when using nodemon as a module HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemon.