docker / multi-container-app

93 stars 341 forks source link

`docker compose watch` doesn't reflect changes as per tutorial #41

Open golemB opened 4 months ago

golemB commented 4 months ago

In the Docker Desktop Learning Center tutorials, it says (as step 7) to run docker compose watch and then alter line 18 of app/views/todos.ejs to see a live change. However, that doesn't work.

After a quick look at docs, I found that adding this to the develop: watch: section of compose.yaml seems to fix this:

        - path: ./app/views
          target: /usr/src/app/views
          action: rebuild
Hachikoi-the-creator commented 3 weeks ago

tried that and several more options, like specifying the exact file, adding nodemon as start comand, f5, shift ctrl r, and couldn't seem to make it work, gpt started tripping so hard, so i may try later