tôi đã cố gắng triển khai các ứng dụng mẫu GO để Heroku niêm yết hereKhông thể triển khai ứng dụng GOLang mẫu để Heroku
Nhưng khi tôi chạy lệnh:
git push heroku master
tôi nhận được lỗi sau:
Đếm đối tượng: 28, xong.
Compressing objects: 100% (21/21), done. Writing objects: 100% (28/28), 3.08 KiB, done. Total 28 (delta 6), reused 0 (delta 0)
! Heroku push rejected, no Cedar-supported app detected
To [email protected]:mysterious-refuge-1227.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '[email protected]:mysterious-refuge-1227.git'
Mẫu mã có thể là out-of-date vì vậy tôi đã tạo ra một hello world đơn giản GO App nhưng so với cùng lệnh git push Tôi đã nhận lỗi sau:
Counting objects: 10, done.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 1.16 MiB | 690 KiB/s, done.
Total 10 (delta 1), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing Go 1.1... done
Installing Virtualenv... done
Installing Mercurial... done
Installing Bazaar... done
-----> Running: go get -tags heroku ./...
package echo/...: unrecognized import path "echo/..."
! Heroku push rejected, failed to compile Go app
To [email protected]:evening-reef-1503.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:evening-reef-1503.git'
Bất kỳ ý tưởng về cách Tôi có thể giải quyết vấn đề này?
Dưới đây là thông tin hệ thống của tôi:
- phiên bản GoLang: go phiên bản go1.1 linux/386
- Kubuntu phiên bản: 12,10
Tôi giả sử bạn không thêm 'Procfile' vào repo của bạn trước khi đẩy nó. – elithrar
Mã mẫu trong github có một Procfile. Trong ứng dụng của riêng tôi, tôi đã bao gồm một Procfile. Tôi đã xác minh rằng nó đã được thêm vào repo của tôi. – rexposadas