question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No Hot Reload using a Docker container

See original GitHub issue

Description

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: gridsome-hmr-errors

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:open
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hjvedvikcommented, Aug 19, 2019

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.

1reaction
DirtyFcommented, Oct 1, 2019

This should be fixed in 0.7.x.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found