No Hot Reload using a Docker container
See original GitHub issueDescription
When working in Gridsome in a Docker container, hot reload doesn’t seem to work.
Steps to reproduce
Install a new gridsome install in a docker image with some tips to make everything works wonders like host: 0.0.0.0
and the .env
file for GraphQL endpoint.
Used #58 and #134 for making it work in docker.
Expected result
When modifying code in src
folder, the development server should re-compile the changed files.
Actual result
Nothing changes. I just got this error:
I need to stop the container and create a new one to make changes appear.
Environment
Libs:
- gridsome version: 0.6.3
- @gridsome/cli version: 0.1.1
Browser:
- [X] Chrome (desktop) version 74.0.3729.169 (64 bits)
For Tooling issues:
- Node version: 10.16.0
- Platform: Docker on Windows 10 WSL
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
React hot reload doesn't work in docker container
Currently, if I create a file it recompiles, but if I change something in a file it does not.
Read more >CRA 5.0 fails to hot-reload in a docker container built ... - GitHub
CRA 5.0 fails to hot-reload in a docker container with using CHOKIDAR_USEPOLLING. Yes its mounted correctly. I checked many many times.
Read more >How to Enable Live-reload on Docker-based Applications with ...
Go to the Github repository and clone it on your post-docker-live-reload folder. It requires Node. js version 10 or higher and MongoDB. Instead ......
Read more >Hot Reload Node-Typscript with Docker! | by Kartik Kwatra
Start developing your Typescript Node app with hot reloading enabled on the docker container. Dockerizing a Node app after developing it locally ...
Read more >Webpack hot-reload not working in out-of-the-box zoomapps ...
We'll look into this. Likely it has to do with the web socket protocol not supported by the Docker container instance. Under the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This will be improved in the next release 😃 The default host will be
0.0.0.0
. And the GraphQL and SockJS endpoints will be/___graphql
and/___echo
instead of full absolute URLs. SockJS will also run on the same port as the site.This should be fixed in 0.7.x.