Live-reloading doesn't work for db-fixture-rest-api microservice
Opened this issue · 1 comments
foodcourt2021 commented
Hi Ashley,
I think we probably need to make the following 2 changes to get the db-fixture-rest-api live-reloading working.
- 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"
},
- In
docker-compose.yml
volumes:
- ./fixtures:/usr/src/app/fixtures:z
+ - ./db-fixture-rest-api/src:/usr/src/app/src:z
ashleydavis commented
The change looks good! Feel free to make a PR.