From 2a5e631d1fcc7f5766719d8d9e1bcf48236ff4ac Mon Sep 17 00:00:00 2001 From: Stephan <57194608+stephan418@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:18:30 +0100 Subject: [PATCH] Fix bug where nodemon restarts multiple times - Nodemon was watching the whole file system and not only the /app directory --- scripts/docker-entrypoint.dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker-entrypoint.dev.sh b/scripts/docker-entrypoint.dev.sh index 02a4c50..f71097b 100755 --- a/scripts/docker-entrypoint.dev.sh +++ b/scripts/docker-entrypoint.dev.sh @@ -10,4 +10,4 @@ if ! test -f INITIALIZED; then npx prisma db push fi -nodemon /app/src/app.ts +nodemon --watch /app /app/src/app.ts