2016-11-14 41 views
1

我有一個Rails 5應用程序,我試圖推向Heroku。 Heroku實例存在,git遠程設置等。但是,我收到一個錯誤,它無法檢測到buildpack,儘管它已被定義。有任何想法嗎?Rails 5 Heroku - 未能檢測到set buildpack

$ heroku buildpacks 
=== xx Buildpack URL 
heroku/ruby 

$ heroku buildpacks:set heroku/ruby 
▸ The buildpack heroku/ruby is already set on your app. 

$ git push heroku master 
Counting objects: 1208, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (1075/1075), done. 
Writing objects: 100% (1208/1208), 25.04 MiB | 1.63 MiB/s, done. 
Total 1208 (delta 634), reused 217 (delta 49) 
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 
remote: 
remote: !  Push failed 
remote: Verifying deploy... 
remote: 
remote: ! Push rejected to xx. 
... 

回答

0

如果配置的buildpack無法處理您的應用程序(由其檢測腳本確定),您將收到一個錯誤。例如,Heroku的Ruby buildpack需要在應用程序的根文件夾中存在Gemfile以正確標識其類型,但是如果應用程序的buildpack設置爲heroku/ruby​​並且沒有Gemfile存在,則應用程序將無法構建。嘗試檢查您的Gemfile是否存在於項目的根文件夾中。

+0

這只是從Heroku文檔...是的,我有一個Gemfile。在發佈問題之前,我做了大量的研究 – tim5046

+0

您能否顯示您的git回購?非常有趣的問題,所以我想嘗試掃描你的文件。 @ tim5046 – Abuzhan

相關問題