I'm having some trouble getting it detect the application binary.
For example, my project is called GoServer which is located in $GOPATH/src/GoServer
and its binary (which was created by running go install
in the project directory) is located in $GOPATH/bin/
Now if I try to run the instance locally using go run main.go
it works just fine. If I run it locally using the Heroku Local toolkit (heroku local
) it also works fine. BUT when it push to Heroku's remote repo and open the page from there, it crashes. In the logs it says that it could not find GoServer (bash: GoServer: command not found
).
How can I fix this? Most of the similar issues threads I've seen refer to a misconfigured GOPATH
but mine seems to be fine since Heroku Local works, but not the actual remote setup.