-
Notifications
You must be signed in to change notification settings - Fork 86
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
Frontend container does not hot-reload for local development #15
Comments
How does this work in practice?
is it ./frontend/Dockerfile you are talking about in this quote? I can't see that it has npm install && npm run dev capabilities |
I have updated ./frontend/Dockerfile to accept npm run dev I've had some issue where the first time after docker-compose up -d it doesn't really update, but after a refresh it seems to working OK The ./frontend/Dockerfile should look like this:
And then update ./docker-compose.override.yml like so:
|
Context
The
frontend
container does not support "hot reload" for local development within the container. This is because ourDockerfile
does not have functionality for running a dev build. The solution would be to update thefrontend/Dockerfile
to have both dev and prod builds that would change based on the context it is being run from.Note
npm install && npm run dev
oryarn install && yarn dev
The text was updated successfully, but these errors were encountered: