How to hot-reload within a docker compose project?
I've started with refine couple days ago, and it is doing nice.
I've since developed the major parts of the frontend straight out from my machine environment (as in, no docker or virtualization at all) while having the backend running on a docker container. I've tryied to setup refine inside a docker container aswell, binding my code into a volume but I'm not able to enable hot-reload funcitonality inside it.
I've done this before with CRA, where I needed just to add env vars for , but for refine this doesnt work.
For refine I've managed to add some kind of hot-reloading using nodemon, but restarting the dev server everychange makes the develop-test-adjust cycle longer and longer.
Developing from the host itself looked way more straight foward but having multiple environments makes things harder aswell.
Anyone know how to enable or tweak the hot reloading stuff from refine?
Here is the whoami from host:
Here is the whoami inside the container
Here is my dev dockerfile:
Here is the service for the frontend
I've setup the project several times using the wizard, tested with or without examples, with antd or headless, but without any sucess.
Anyone by chance have experienced this and might give me a light?
Thanks**
I've since developed the major parts of the frontend straight out from my machine environment (as in, no docker or virtualization at all) while having the backend running on a docker container. I've tryied to setup refine inside a docker container aswell, binding my code into a volume but I'm not able to enable hot-reload funcitonality inside it.
I've done this before with CRA, where I needed just to add env vars for , but for refine this doesnt work.
For refine I've managed to add some kind of hot-reloading using nodemon, but restarting the dev server everychange makes the develop-test-adjust cycle longer and longer.
Developing from the host itself looked way more straight foward but having multiple environments makes things harder aswell.
Anyone know how to enable or tweak the hot reloading stuff from refine?
Here is the whoami from host:
Here is the whoami inside the container
Here is my dev dockerfile:
Here is the service for the frontend
I've setup the project several times using the wizard, tested with or without examples, with antd or headless, but without any sucess.
Anyone by chance have experienced this and might give me a light?
Thanks**
