Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: command not found #467

Open
iseolin76 opened this issue Jun 25, 2021 · 2 comments
Open

go: command not found #467

iseolin76 opened this issue Jun 25, 2021 · 2 comments

Comments

@iseolin76
Copy link

iseolin76 commented Jun 25, 2021

The go command does not work even though the go build pack is applied.
version: 1.16
Below is the corresponding log.

스크린샷 2021-06-26 오전 12 12 08

The following is my file directory

스크린샷 2021-06-26 오전 12 17 43

What did I miss?

@pemistahl
Copy link

I just stumbled over the same problem. The command in your Procfile is wrong. Instead of writing web: go run main.go you need to enter web: /bin/your-app-name. The app name is equivalent to the name of your git repository.

This is pretty badly documented, I must say. It took me quite some time to figure this out. The Heroku guys should improve their docs.

@mble
Copy link
Contributor

mble commented Aug 19, 2021

Yes, we should make this clearer that the buildpack first builds your binaries and does not include a copy of the toolchain. We do explain this here https://devcenter.heroku.com/articles/go-support#runtime-behavior, but it is pretty out of the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@pemistahl @mble @iseolin76 and others