Heroku跟踪部署问题



我正试图通过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似乎在某个地方玩这个,但我就是搞不明白。如有任何帮助,我们将不胜感激。

截至今天,答案已解决。问题是,在这个过程中,jruby被包含在gem依赖项列表中,并像滚雪球一样扩展到其他所有内容中。为了解决这个问题,我需要从应用程序中的所有文件夹中删除jruby的所有实例,它才能正确编译和部署。

最新更新