Saturday, April 30, 2022

Live Reloading Go (web) Apps


5 Ways to Live Reloading Go Applications - Tech Inscribed

go get -u github.com/cosmtrek/air
air

or

docker run -it --rm -w <WORKING_DIR> -v <PROJECT_FOLDER>:<MOUNT_POINT> -p <HOST_PORT>:<CONTAINER_PORT> cosmtrek/air

or

go get github.com/codegangsta/gin
gin --appPort 5000 --port 3000

or

npm install -g nodemon
nodemon --exec go run main.go --signal SIGTERM

or

go get github.com/pilu/fresh
fresh



No comments: