Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 629 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 629 Bytes

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.