0

I have seen this question and answers and other questions and answers but none seems to answer the question: How to use nodemon with docker while running docker on windows?.

So after a few hours of research and finding a solution I have decided to post the question and answer to help anyone looking for the same solution in the future.

YulePale
  • 6,688
  • 16
  • 46
  • 95
  • I’m not clear from reading this what your actual question is. If you have another answer to the question you linked to you’re certainly welcome to add it, even if it already has an accepted answer. – David Maze Dec 10 '19 at 13:53
  • I know but my question also addresses the issue while running docker on a windows machine. It is actually a new question. – YulePale Dec 10 '19 at 13:56

1 Answers1

0

How to use nodemon with docker while running docker on windows?

Short answer: use nodemon -L index.js

Long answer: Thanks to this article: Getting started with Docker for local Node.js development and this response I was able to figure out how to do it.

For addition reading to understand why we use nodemon with -L see this section of the nodemon docs.

YulePale
  • 6,688
  • 16
  • 46
  • 95