2016-07-28 81 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