2013-08-26 54 views
0

我試圖把我的Rails應用到Heroku的,首先創建Heroku的帳戶中,然後在命令提示符下無法部署應用程序,以Heroku的

  • 的git的init
  • git的補充。
  • git的承諾-m 「初始化」
  • Heroku的登錄,然後按SSH
  • 的Heroku創建mycvdemo
  • 混帳推Heroku的主

C:\Sites\mycv>git push heroku master 
Counting objects: 253, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (228/228), done. 
Writing objects: 8% (21/253), 208.00 KiB | 3 KiB/s 

但我收到這個錯誤:

C:\Sites\mycv>git push heroku master 
Counting objects: 253, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (228/228), done. 
Write failed: The connection was abortediB | 3 KiB/s 
fatal: sha1 file '<stdout>' write error: Invalid argument 
error: failed to push some refs to '[email protected]:mycvdemo.git' 

8%寫入對象時我總是收到這個錯誤。

+0

請確保''[email protected]:mycvdemo.git''是正確的位置。我對Heroku一無所知,但對於github,你通常必須在那裏輸入用戶名。就像''[email protected]:username/mycvdemo.git'' – sircapsalot

+0

你有沒有做過'git remote add heroku [email protected]:mycvdemo.git'? –

+0

@RajarshiDas git remote當我運行'heroku創建'時自動添加 – GeekToL

回答

0

不知道這是一個問題,但你在這裏缺少一個步驟:

  • 的git的init
  • git的補充。
  • git的承諾-m 「初始化」
  • 混帳推起源主
  • Heroku的登錄,然後按SSH
  • 的Heroku創建mycvdemo
  • 混帳推Heroku的主

您只能把東西推到已經推到git的Heroku上。提交只是本地的。 This是一個很好的解釋(附圖!)

+0

你確定我應該運行「git push origin master」來部署到heroku嗎?我已經嘗試一步一步從heroku文章https://devcenter.heroku.com/articles/rails3 – GeekToL

+0

是的,試試看。 – dax

+0

你嘗試過嗎? – GeekToL