Production ready boilerplate with live-reloading development
Read this article first
Start production enviroment
$ docker-compose up -d production
// View logs
$ docker-compose logs --tail 100 -f production
Start development enviroment
$ docker-compose up development
Re-building docker
$ docker-compose build --no-cache
Attach to bash
$ docker-compose exec <production|development> sh
After running docker-compose open:
development: http://localhost:8080/
production: http://localhost:8081/
$ make serve
You may need to execute go mod download
in src
folder first
cd src
go mod download
go build -o /bin/app && /bin/app
cd src
go run main.go