'How to set up developing Django, JavaScript with Docker and static files? To get real time web page changes
Currently I have Docker container. The process with main.js:
- npm renders main.js and store it in static folder (out of the docker container)
- Docker compose and docker file collects static files in static-volume, including main.js
- Nginx serves main.js from static-volume
But when I make changes to the source code, I can see the results only after restarting container and "docker volume prune" command.
I want to have changes of the web page right after code is changed. And what is the best practise in this scenario?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|