Sign inSign up

syutingsong/gin-live-httpd

By syutingsong

•Updated over 6 years ago

live edit, compile and restart golang web server

Image
0

467

syutingsong/gin-live-httpd repository overview

⁠gin live httpd

Live edit and compile go source code and restart web server based on codegangsta/gin⁠.

The gin-gonic/gin⁠ web framework is included.

⁠Usage

cd path/to/your/gin/project
docker run -ti --rm \
    -v $(pwd):/app \
    -p 8080:80 \
    syutingsong/gin-live-httpd

⁠Environment Variables

NameDescDefault
GIN_LADDRlistening address for the proxy server0.0.0.0
GIN_PORTport for the proxy server80
BIN_APP_PORTport for the Go web server3001
GIN_BINname of generated binary filegin-bin
GIN_BUILD_ARGSAdditional go build arguments
GIN_CERT_FILETLS Certificate
GIN_KEY_FILETLS Certificate Key
GIN_LOG_PREFIXLog prefixgin

Tag summary

Content type

Image

Digest

Size

194.3 MB

Last updated

over 6 years ago

docker pull syutingsong/gin-live-httpd