我使用的是Ubuntu 10.04。通過以下tutorial here,我創建了Heroku帳戶,安裝了GIT和Heroku成功。我上傳了SSH密鑰,並將heroku添加到我的系統PATH中。Heroku中的新手:將我的應用推向Heroku時出錯
在那之後,我做了以下事情:
---------- FIRST(成功)-------------
$ cd PATH/TO/MY_APP
$ git init
Initialized empty Git repository in .git/
$ touch HELLO
$ git add .
$ git commit -m "Add a HELLO file"
------------ THEN(成功)----------
$ heroku create
Enter your Heroku credentials.
Email: [email protected]
Password:
Uploading ssh public key /Users/joe/.ssh/id_rsa.pub
Created http://high-sunrise-58.heroku.com/ | [email protected]:high-sunrise-58.git
Git remote heroku added
-----------最後(其中失敗!!!)----------
$ git push heroku master
Warning: Permanently added the RSA host key for IP address 'xx.xx.xx.xx' to the list of known hosts.
Counting objects: 3, done.
Writing objects: 100% (3/3), 226 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
f
-----> Heroku receiving push
! Heroku push rejected due to an unrecognized error.
! We've been notified, see http://support.heroku.com if the problem persists.
To [email protected]:high-sunrise-58.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:high-sunrise-58.git'
正如你看到的上面,我的最後一步失敗。
在我最後一步(將應用程序推到Heroku時)出現錯誤的可能原因是什麼?爲什麼失敗?
你沒有做錯什麼 - 我會聯繫Heroku支持。有一件事,這是一個Rails應用程序吧? –
是的,它將是一個Rails應用程序。但是目前我只是創建了一個純文本文件來推送到heroku進行測試。 – Mellon