Problem
App does not always run on the port specified in app.ini or the URL given when the app is built.
For example, when app.ini shows
HTTP_PORT = 3333
ROOT_URL = http://localhost:3003/
terminal says
cmd/web.go:328:listen() [I] Listen: http://0.0.0.0:3333
cmd/web.go:332:listen() [I] AppURL(ROOT_URL): http://localhost:3003/
and the app is visible at http://localhost:3333/ (even though user is told to visit http://localhost:3003/).
Commenting out the ROOT _URL line in the app.ini worked during testing because it seems that localhost is already specified elsewhere.
Solution
The port should be specified in one location, or clarify why they’re different.