Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 将RoR应用程序部署到Heroku getting“;Ruby解释器或扩展库中的错误“;错误_Ruby On Rails_Heroku_Deployment - Fatal编程技术网

Ruby on rails 将RoR应用程序部署到Heroku getting“;Ruby解释器或扩展库中的错误“;错误

Ruby on rails 将RoR应用程序部署到Heroku getting“;Ruby解释器或扩展库中的错误“;错误,ruby-on-rails,heroku,deployment,Ruby On Rails,Heroku,Deployment,在上面的图片中是我能找到的所有错误。我更新了纱线、网页包、捆绑机和ruby。老实说,我不知道为什么它不起作用。我过去部署过,没有问题。以下是来自heroku终端的错误 remote: You may have encountered a bug in the Ruby interpreter or extension libraries. remote: Bug reports are welcome. remote: For details: http

在上面的图片中是我能找到的所有错误。我更新了纱线、网页包、捆绑机和ruby。老实说,我不知道为什么它不起作用。我过去部署过,没有问题。以下是来自heroku终端的错误

remote:        You may have encountered a bug in the Ruby interpreter or extension libraries.
remote:        Bug reports are welcome.
remote:        For details: https://www.ruby-lang.org/bugreport.html
remote:        
remote:        Aborted
remote: 
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...


###### WARNING:
       There is a known bundler bug with your version of Ruby
       
       Your version of Ruby contains a problem with the built-in integration of bundler. If
       you encounter a bundler error you need to upgrade your Ruby version. We suggest you upgrade to:
       
       2.6.6
       
       For more information see:
         https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues
###### WARNING:
       Removing `Gemfile.lock` because it was generated on Windows.
       Bundler will do a full resolve so native gems are handled properly.
       This may result in unexpected gem versions being used in your app.
       In rare occasions Bundler may not be able to resolve your dependencies at all.
       
       https://devcenter.heroku.com/articles/bundler-windows-gemfile
-----> Installing dependencies using bundler 2.1.4
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin bundle install -j4
       Fetching https://github.com/doabit/semantic-ui-sass.git
       The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.


Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       yarn install v1.22.4
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       info fsevents@2.1.3: The platform "linux" is incompatible with this module.
       info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
       info fsevents@1.2.13: The platform "linux" is incompatible with this module.
       info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
       [3/4] Linking dependencies...
       warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has incorrect peer dependency "webpack@^4.0.0".
       [4/4] Building fresh packages...
       Done in 32.34s.
       yarn install v1.22.4
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       info fsevents@2.1.3: The platform "linux" is incompatible with this module.
       info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
       info fsevents@1.2.13: The platform "linux" is incompatible with this module.
       info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
       [3/4] Linking dependencies...
       warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has incorrect peer dependency "webpack@^4.0.0".
       [4/4] Building fresh packages...
       Done in 6.25s.
       /tmp/build_1c2393a0/vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/lib/sassc/engine.rb:43: [BUG] Segmentation fault at 0x0000000000000000
       ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]



我还删除了gemlock文件并重新绑定。我也在使用Desive gem,当我试图将代码发送给heroku时,它似乎确实会暂停。我也在使用CLI并尝试github部署。两者都不起作用。

因此问题不是Ruby。事实上,我使用的是AWS s3存储桶和活动存储。在rails应用程序中使用活动存储时,您需要一个ruby构建包和一个包。然后您需要在AWS端的Heroku上设置bucket,并且需要使用特定的规则来设置bucket。然后,您必须将密钥和bucket名称输入Heroku

该错误表示您的Ruby版本是2.6.1,建议将其升级到2.6.6以避免此已知错误。你试过了吗?我想我试过了,但我一定是做错了什么。它不允许我从2.6.1更新。我brew在我的笔记本电脑上安装了新版本,但它仍然显示版本为2.6.1。当然,但您必须进行设置,然后如果您的应用程序中存在类似
.ruby version
的文件,或者可能在
Gemfile
中进行了设置,您也必须进行更新。您是否使用rvm或rbenv之类的工具?确保您也推送到github,然后部署,否则更改将不会发送到Heroku。我的本地机器不会从2.6.1更新到2.7.1或2.6.6。它说它不受支持或它会说它已更新,但当我使用ruby-v时,它会给我ruby 2.6.1p33(2019-01-30修订版66950)[x86_64-darwin19],所以我无法更新我的应用程序。我真的不知道在这一点上该做什么,你下载后如何设置它?它赢了;不只是更新,但如果不支持,您可能必须尝试2.7.1。如果在GEM文件中将其设置为2.6.6,会出现什么情况?