Skip to content

caitlinelfring/go-autoreload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_hello_world

"hello world" web server application in go for show autoreload functionality within Docker.

A script is installed in the Docker container that utilizes inotifywait and watches for the specified file changes. The example in this repo watches for *.go file changes. If you want to watch files in subdirectories, you'll need to configure for something like: ./*.go ./**/*.go ./**/**/*.go. Sadly, inotifywait can't recursively watch specific file extensions.

Build the docker image:

make build

Run the go webserver:

make start

Autoreload script takes the following parameters:

./autoreload.sh [output_filename] [files to watch]

About

Template for Docker Go application with autoreload

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages