zvelo / watcher

Automatically restart a process when its executable changes on disk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

watcher

A simple tool that wraps the execution of another executable. If that executable changes on disk, then watcher will restart it with the same environment and arguments.

This is useful, in particular, for Go executables (which are often a single file, without external runtime file dependencies).

This is also useful when using a tool like Foreman or forego which manage processes.

By wrapping each process's execution with watcher, a Procfile with lots of processes doesn't have to bring down every process each time a single executable changes.

About

Automatically restart a process when its executable changes on disk

License:MIT License


Languages

Language:Go 100.0%