-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use hot reloading in Docker #6722
Comments
Not using Docker-compose, but someone else asked the same thing on Discord. Could you research if:
From my research, seems Docker doesn't support file watchers, and you have to use the |
Closing. If there's anything that Docusaurus could clearly improve, please follow-up. Otherwise I'd be considering this as a question. |
Using windows 10 together with a vscode devcontainer (javascript-node:0-18) i faced the same problem (no hot reload with |
This is normally fixed in #7951 but will only appear in Docusaurus v3. |
@slorber Thanks, I'm on 2.3.1. The workaround is enough for the moment. Just wanted to give a solution to other people that might search for "devcontainer" in the issues (as i was before finding this) |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I'm trying to run docusaurus over docker and use the hot reload feature so I don't need to recompile each time the project, but for some reason when I do a change the project doesn't recompile
Steps to reproduce
docker-compose up --build -d
Expected behavior
When an update is made, the code should reload automatically
Actual behavior
When an update is made no changes are reflected on the live site
Your environment
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: