June 2016
Intermediate to advanced
600 pages
8h 6m
English
When we use the term “live reload,” what we really mean is that we want to be able to change our source code, save, and see that change live without having to stop or restart a container.
To achieve this, there are a few things that need to happen:
• Your updated code needs to be in the container. The easiest way to do this is using Docker volume mounting.
• You need a tool to watch for code changes to restart your application if a file changes. Support for live reloading is dependent on the programming language and platform you are using. For Node, you can use NPM package nodemon, for Go, you can use the Gin utility https://github.com/codegangsta/gin to recompile when code changes, and for ASP.NET, ...
Read now
Unlock full access