2016-07-28 70 views
3

因此,我正在学习如何将Heroku与git结合使用,并且我似乎无法将git推到我的套装库。所以我设置了buildpack这样做的Heroku与红宝石红宝石..Git无法找到set buildpack

[email protected]:~/ruby# heroku buildpacks:set heroku/ruby 
Buildpack set. Next release on stormy-earth-98069 will use heroku/ruby. 
Run git push heroku master to create a new release using this buildpack. 

接下来,我尝试使用混帐推来更新我的回购和我得到一个错误说这个..

[email protected]:~/ruby# git push heroku master 
... 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz 
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure 
... 

所以我想知道什么可能会导致git做到这一点?

回答

0

你的问题有答案。根据docs,看起来像你正在运行的目录'git push'没有Gemfile。

+0

我得到同样的错误,但我有一个Gemfile,以及Gemfile.lock ... –

+0

同样在这里。我在推送的目录中有一个Gemfile和Gemfile.lock。我也在掌握,但仍然得到这个错误。 – Oliver84