मैं तैनाती Heroku के लिए नमूना GO आवेदन सूचीबद्ध hereHeroku
लेकिन कोशिश की करने के लिए नमूना GOLang आवेदन को तैनात नहीं किया जा सकता है जब मैं कमांड चलाएँ:
git push heroku master
मैं निम्नलिखित त्रुटि मिलती है:
गिनती वस्तुओं: 28, किया।
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'
पर कैसे कोई भी विचार:
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'
नमूना कोड आउट-ऑफ-तारीख तो मैं एक साधारण हैलो दुनिया GO एप्लिकेशन बनाया है, लेकिन एक ही Git धक्का आदेश से मैं निम्नलिखित त्रुटि मिली हो सकता है मैं इस मुद्दे को हल कर सकता हूं?
यहाँ अपने सिस्टम जानकारी है:
- GoLang संस्करण: संस्करण go1.1 जाना linux/386
- Kubuntu संस्करण: 12,10
मुझे लगता है कि आपने इसे दबाए जाने से पहले अपने रेपो में 'Procfile' नहीं जोड़ा है। – elithrar
गीथब में नमूना कोड में एक प्रोफाइल है। मेरे अपने ऐप में, मैंने एक प्रोफाइल बनाया था। मैंने सत्यापित किया है कि इसे मेरे रेपो में जोड़ा गया है। – rexposadas