Re:Air – Live reload when developing with Go
by rejectedandsad on Sunday August 01, 2021 @04:52AM
(#28024864)
How does it handle watch mode for compiled or built code?
[ Parent
| on HN ]
Re:Air – Live reload when developing with Go
by rckrd on Sunday August 01, 2021 @08:53AM
(#28025929)
It parses a Dockerfile (or queries dependencies in a tool like bazel) to get a list of file dependencies and then kicks off an optimized rebuild and redeploy. If you're using buildkit and caches this can be done really quickly (close to native compile without a Docker image)
You can tell it to just sync certain changes (e.g. syncing a javascript file to a container running webpack).