I'm trying to get a very simple database-backed golang heroku app working as a hello world.
The deployed Heroku version of my app is working perfectly, and if I manually test it locally, it works perfectly, but heroku local
is stubbornly using an old version of my code. Specifically:
$ heroku local
forego | starting web.1 on port 8080
works, but unexpectedly serves an older version of the app. On the other hand, this:
$ go run web.go
and this:
$ git push heroku master
Everything up-to-date
$ heroku open
both serve what I expect, which is the latest version of my code.
This is really confusing me. I've read all the documentation and double checked the state of everything, and can't find anything that indicates what is going on, or which could cause it.
My best guess are that heroku local
is using a compiled slug from somewhere that is not getting updated.