2016-03-08 116 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 
相关问题