我将对象推送到heroku。运行git push heroku master
。
它说:
Counting objects: 124, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (113/113), done.
Writing objects: 100% (124/124), 23.86 KiB | 0 bytes/s, done.
Total 124 (delta 29), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to fast-spire-62625.
remote:
我用Google搜索,但我找不到正确的解决方法!
答案 0 :(得分:1)
每个language / buildpack都有一个bin/detect
文件,用于检测它是否可以用于该应用程序。
该错误表示此处未检测到默认的buildpack。
ruby buildpack依赖于目录顶部的Gemfile
文件。
此错误表示找不到该文件。这真的是一个红宝石项目吗?它位于目录的顶部还是子文件夹中?
答案 1 :(得分:0)