2016-03-08 74 views
3

我已經嘗試手動clearing and setting the buildpack爲我的Rails應用程序heroku/rails。我覈實,我有一個Gemfile中,我仍然得到這個錯誤Heroku Toolbelt無法檢測到一套buildpack

remote: -----> Using set buildpack heroku/ruby 
    remote: 
    remote: !  Push rejected, failed to detect set buildpack heroku/ruby 
    remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure 
    remote: 
    remote: Verifying deploy... 
    remote: 
    remote: ! Push rejected 

,因爲我設置buildpack,但隨後無法檢測到它這是令人困惑的。我的一些路由呈現json,因爲我希望這個應用可以作爲後端API。我需要爲Node添加一個buildpack嗎?還有其他建議嗎?

回答

4

我有應用程序位於冗餘子文件夾中的git回購。我通過將所有內容都提升到一個水平來重新解決問題,並重新提交,並且git push heroku master。 Heroku在頂層查找Gemfile,因此我將所有應用程序文件移至頂層(應該始終保持原樣)。

0

我重新初始化了回購,並重新執行了操作。我的承諾和推動。工作!

git init 

添加heroku上作爲遠程

git remote add heroku https://git.heroku.com/appname.git' 
git add . 
git commit -m "initial commit" 
git push heroku master 
相關問題