bootstrapping-microservices/chapter-9

Live-reloading doesn't work for db-fixture-rest-api microservice

Opened this issue · 1 comments

Hi Ashley,

I think we probably need to make the following 2 changes to get the db-fixture-rest-api live-reloading working.

  1. In db-fixture-rest-api/package.json
   "scripts": {
-    "start": "nodemon --legacy-watch --watch \"fixtures/**/*\" ./src/index.js",
+    "start": "nodemon --legacy-watch --watch \"fixtures/**/*\" --watch ./src/index.js --delay 5 ./src/index.js",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
  1. In docker-compose.yml
     volumes:
      - ./fixtures:/usr/src/app/fixtures:z
+     - ./db-fixture-rest-api/src:/usr/src/app/src:z

The change looks good! Feel free to make a PR.