Heim  >  Fragen und Antworten  >  Hauptteil

docker挂载目录的问题

问题描述

我打算用docker来配置开发环境,已经配置了挂载目录了,命令是这样的docker run --name=my-node -p 80:3000 -v /path/to/project:/usr/app my-node,然后在本地的代码更新保存后,挂载目录的代码同样也更新了,但是却没有触发webpack的热加载和nodemon的热加载。在本地这两个是可以正常热加载的。

希望大家能帮我解下惑,谢谢啦

曾经蜡笔没有小新曾经蜡笔没有小新2706 Tage vor519

Antworte allen(1)Ich werde antworten

  • 为情所困

    为情所困2017-04-25 09:04:38

    This is actually two different problems, there are solutions all around the web, here is a good starting point: http://stackoverflow.com/ques...

    Antwort
    0
  • StornierenAntwort