[英]Getting error trying to deploy rails app on heroku
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. 当我尝试部署Rails应用程序时。
I already have a package.json
file in my root directory. 我的根目录中已经有一个package.json
文件。
I already have a Gemfile
in my root directory. 我的根目录中已经有一个Gemfile
。
I already set my buildpack to heroku/ruby
. 我已经将buildpack设置为heroku/ruby
。
This is a picture of the full error on the Heroku dashboard: 这是Heroku仪表板上的完整错误的图片:
Here's the repo if that helps: https://github.com/TrentCodes/AboutMeWebsite.git 如果有帮助的话,这里是回购: https : //github.com/TrentCodes/AboutMeWebsite.git
I already have a
package.json
file in my root directory. 我的根目录中已经有一个package.json
文件。I already have a
Gemfile
in my root directory. 我的根目录中已经有一个Gemfile
。
No you don't: they're in a folder called aboutmewebsite/
. 不,您不需要:它们位于名为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/
). 您需要将该目录中的所有内容移动到根目录(当前包含README.md
和aboutmewebsite/
的文件夹)中。
I already set my buildpack to
heroku/ruby
. 我已经将buildpack设置为heroku/ruby
。
You'll also need the Node.js buildpack if you intend to have dependencies from your package.json
installed. 如果要从package.json
安装依赖项,则还需要 Node.js buildpack。 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. 之后运行heroku buildpacks
,以确保首先使用Node.js buildpack,然后是Ruby buildpack。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.