Go webserver that is built as a docker image, CI done by Travis and continuosly deployed with Heroku.
- First build it;
docker build -t go-docker:latest .
- Run it;
docker run --rm -it -p 8080:8080 go-docker:latest
. - Go to localhost:8080 to see webpage.
- Run it;
docker-compose up
. - Go to localhost:8080 to see webpage.
- Run,
heroku apps:create go-docker
. - Run for staging env,
heroku apps:create go-docker-staging
.
- Improve by following this tutorial https://medium.com/@adigunhammedolalekan/build-and-deploy-a-secure-rest-api-with-go-postgresql-jwt-and-gorm-6fadf3da505b
Sylvance Kerandi.