Reputation: 63
I push object to heroku. Run git push heroku master
.
It said:
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:
I googled that, but I did not find the right way to fix it!
Upvotes: 0
Views: 2538
Reputation: 23681
You can change the buildpack used by an application by setting the buildpack value. When the application is next pushed, the new buildpack will be used.
heroku buildpacks:set heroku/ruby
Refer this
Upvotes: 0
Reputation: 32629
Each language/buildpack has a bin/detect
file used to detect if it can be used for that app.
That error indicates no default buildpacks were detected here.
The ruby buildpack relies on the presence of a Gemfile
file at the top of your directory.
This error means that file wasn't found. Is this really a ruby project? Is it at the top of your directory or in a subfolder?
Upvotes: 2