Skip to content

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

Description

@foodcourt2021

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions