Skip to content

Hot reloading does not work in docker #3969

Closed
@darius-khll

Description

@darius-khll

I generated react application using npx create-react-app my-app
everything works fine in my local machine and I used npm start and hot reload works.
but when I started to use this application in docker container I missed hot reloading feature
using following command I created docker container and mounted volume on it:
docker run -p 3000:3000 -v "$(pwd):/var/www" -w "/var/www" node npm start
react app comes up and works properly but after changing code it does not affect on this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions