user12341234
user12341234

Reputation: 1487

How to make nodemon exit on crash?

I am using nodemon to restart node on changed files, but it also has this behavior which I don't want, it doesn't exit on crash. it says [nodemon] app crashed - waiting for file changes before starting...

I want it to exit on crash because otherwise my docker container will report the container as healthy even if it crashed.

Upvotes: 2

Views: 1489

Answers (1)

OKi
OKi

Reputation: 199

Try nodemon --exitcrash

This worked for me in the docker container.

Upvotes: 3

Related Questions