I propose a command that watches a mounted source and restarts the container when files change.
This would, by default, watch all files in the dir, excluding what's in .gitignore
It would also be nice to configure it to watch a given file, directory, or glob. In node apps, this configuration would probably look something like dist/**/*.js
The restart itself would probably have to be debounced because lots of file changes can happen at once.
Some containers can auto-reload their own source code, but that can be a lot of work to set up, unreliable, even dangerous in certain languages and environments.
I propose a command that watches a mounted source and restarts the container when files change.
This would, by default, watch all files in the dir, excluding what's in
.gitignore
It would also be nice to configure it to watch a given file, directory, or glob. In node apps, this configuration would probably look something like
dist/**/*.js
The restart itself would probably have to be debounced because lots of file changes can happen at once.
Some containers can auto-reload their own source code, but that can be a lot of work to set up, unreliable, even dangerous in certain languages and environments.