Skip to content

jakewan/go-procrotator

Repository files navigation

go-procrotator

Restart a server process when certain files change.

Install:

go install github.com/jakewan/go-procrotator@v1

Add a configuration file named procrotator.toml or .procrotator.toml to the root directory of the target software project.

Here is an example configuration file for a typical Go server application. The hypothetical binary is named some-go-server.

include_file_regexes = ["\\.go$", "\\.tmpl$"]
preamble_commands = ["go build ."]
server_command = "./some-go-server"

Execute within the server application directory:

go-procrotator

Press CTRL+C to quit.