I keep getting
App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/ruby.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
when I try to deploy my Rails application.
I already have a package.json
file in my root directory.
I already have a Gemfile
in my root directory.
I already set my buildpack to heroku/ruby
.
This is a picture of the full error on the Heroku dashboard:
Here's the repo if that helps: https://github.com/TrentCodes/AboutMeWebsite.git
I already have a
package.json
file in my root directory.I already have a
Gemfile
in my root directory.
No you don't: they're in a folder called aboutmewebsite/
.
You need to move everything that's in that directory up to the root directory (the folder that currently contains README.md
and aboutmewebsite/
).
I already set my buildpack to
heroku/ruby
.
You'll also need the Node.js buildpack if you intend to have dependencies from your package.json
installed. Something like
heroku buildpacks:add --index 1 heroku/nodejs
should do it. Run heroku buildpacks
afterwards to make sure that the Node.js buildpack is first and the Ruby buildpack is second.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.