2011-07-20 64 views
2

大家好,永久添加IP地址的RSA主機密鑰

我運行這個命令時出現錯誤:「git push heroku master」。錯誤日誌顯示以下內容:

$ git push heroku master 
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts. 
Counting objects: 3, done. 
Writing objects: 100% (3/3), 209 bytes, done. 
Total 3 (delta 0), reused 0 (delta 0) 

-----> Heroku receiving push 
!  Heroku push rejected, no Rails or Rack app detected 

To [email protected]:simple-earth-536.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]_name.git' 

任何想法可能會導致此?我歡迎任何建議,謝謝大家。

回答

2

這意味着您不在rails應用程序中,例如,如果您不在正確的目錄中。

確保你確實在你的apps目錄中。

rails myapp 
cd myapp 

這是流動你應該通過」

rails new_app 
git init 
git add . 
git commit -m 'master' 
heroku create 
git push heroku 
+0

謝謝,很好的答案。 – coolesting

+0

NP,讓我知道,如果你需要更多幫助 – s84

+0

如何更新應用程序到heroku當我修復我的代碼在本地存儲庫? – coolesting