Build Changes
Files in src/ are watched and applied instantly via live reload. Configuration and build files are not: depending on how they are wired into Docker, changing them requires either restarting the containers or rebuilding the images.
Restart Containers
These files are mounted or read at container startup. Stop the running process with CTRL/CMD+C and start again:
| File | Description |
|---|---|
config/ | Nginx & PHP configurations |
.env | Environment variables |
docker-compose.yml | Docker Compose configuration |
npm run startRebuild Images
These files are baked into the Docker images at build time, so a restart alone is not enough:
| File | Description |
|---|---|
gulpfile.js | Gulp configuration |
package.json | Node.js packages |
.stylelintrc | Stylelint configuration |
.dockerignore | Docker ignore file |
Dockerfile-nodejs | Node.js Dockerfile |
Dockerfile-wordpress | WordPress Dockerfile |
Stop the running process with CTRL/CMD+C, rebuild, then start again:
npm run build
npm run start