gpt4 book ai didi

ruby-on-rails - Rails 控制台无法在 Digital Ocean 上与 Dokku 一起使用

转载 作者:行者123 更新时间:2023-11-29 12:28:56 25 4
gpt4 key购买 nike

我已将我的 Rails 应用程序推送到 Digital Ocean Dokku Droplet,除 Rails 控制台外,一切正常。当我运行 dokku run myapp rails c 时出现此错误:

/app/vendor/ruby-2.1.2/lib/ruby/2.1.0/irb/completion.rb:9:in `require': libreadline.so.5: cannot open shared object file: No such file or directory - /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/x86_64-linux/readline.so (LoadError)
from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/irb/completion.rb:9:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/console.rb:3:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/console.rb:3:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:128:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:128:in `require_command!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:59:in `console'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
from /app/bin/rails:4:in `require'
from /app/bin/rails:4:in `<main>'

该应用程序安装在干净的 Droplet 上。 Dokku 只安装了一个插件(Postgres)。

最佳答案

在 Gemfile 中添加 gem 'rb-readline 解决了这个问题。

关于ruby-on-rails - Rails 控制台无法在 Digital Ocean 上与 Dokku 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25325543/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com