This is a random word project.
go run .
go build
docker-compose build .
docker-compose run
You can deploy to heroku. You should follow the steps in below link Heroku Deploy
- You must setup PostgreSQL
If you have
heroku-cli
, you can run the below command.
heroku addons:create heroku-postgresql:hobby-dev
You shouldn't forget to set the DB information to ENV in heroku. (ex: DB_HOST, DB_USERNAME)
- You should change go version.
heroku goVersion go1.17
heroku config:set GOVERSION=go1.17
heroku config:set GLIDE_SKIP_INSTALL=true