简体   繁体   English

Heroku Rails 部署问题

[英]Heroku rails deployment issues

I'm trying to push my rails app to deployment via Heroku and whenever i do, i'm getting thrown this error:我试图通过 Heroku 将我的 rails 应用程序推送到部署,每当我这样做时,我都会抛出这个错误:

            Detected buildpacks: Ruby,Node.js
            See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Installing bundler 2.1.4
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.7.0
-----> Installing dependencies using bundler 2.1.4
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
       /usr/bin/env: ‘jruby’: No such file or directory
       Bundler Output: /usr/bin/env: ‘jruby’: No such file or directory
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

Jruby seems to be playing into this somewhere but i just can't figure it out. Jruby 似乎在某个地方玩这个,但我就是想不通。 Any help would be appreciated.任何帮助,将不胜感激。

Answer has been solved as of today.截至今天,答案已解决。 The problem was that somewhere along the line, jruby got included in the list of gem dependencies and snowballed into everything else.问题是,在这条线上的某个地方,jruby 被包含在 gem 依赖项列表中,并滚雪球般地融入了其他所有内容。 In order to fix the problem, I needed to remove all instances of jruby from all folders within the app and it was able to compile properly and deploy.为了解决这个问题,我需要从应用程序内的所有文件夹中删除所有 jruby 实例,并且它能够正确编译和部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM