Heroku Ruby Buildpack检测失败

时间:2017-01-09 07:40:24

标签: ruby-on-rails ruby git heroku buildpack

我正在尝试部署当前位于分支“rails_app”上的Ruby on Rails应用程序(如下所示)。我之前已成功部署它,但它现在无法进行其他更改。当我通过运行“heroku buildpacks”手动查找buildpack时,它表示正确的那个。 [当我尝试重新安装buildpack时,它也说它已经存在了]当我尝试推送到heroku时,我收到了未能检测到set buildpath的情况,如下所示。

Dougs-MBP-2:Rails_Application Doug$ heroku buildpacks
app_name Buildpack URL
heroku/ruby
Dougs-MBP-2:Rails_Application Doug$ git branch
gh-pages
master
* rails_app
update
Dougs-MBP-2:Rails_Application Doug$ git push heroku rails_app:master
Counting objects: 70, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (70/70), 217.85 KiB | 0 bytes/s, done.
Total 70 (delta 46), reused 0 (delta 0)
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 app_name.
remote: 
To https://git.heroku.com/app_name.git
! [remote rejected] rails_app -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/app_name.git'

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

您似乎正在设置自定义构建包:“https://codonbuildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz”但是当我访问该链接时,它表示没有存在具有该名称的存储桶,这意味着heroku无法检测到您的自定义构建包并失败。

您可以在此处详细了解如何指定自定义构建包:https://devcenter.heroku.com/articles/buildpacks#detection-failure

heroku使用的ruby buildpack在此页面上: https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-ruby