【问题标题】:Ruby and Redmine with Lighttpd: cannot load such file -- bundler/setup (LoadError)带有 Lighttpd 的 Ruby 和 Redmine:无法加载此类文件 -- 捆绑器/设置 (LoadError)
【发布时间】:2013-05-15 09:00:31
【问题描述】:

当我尝试使用 lighttpd 运行 redmine 时出现该错误

/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': 无法加载这样的文件 -- bundler/setup (LoadError)

是的,我知道,这个问题已经被问过了,答案总是“安装捆绑程序”和“捆绑安装”,但我已经做到了。我安装了 bundler 并安装了所有必需的 gem 并运行 bundler exec rake db:migrate 等等。尝试启动 lig​​httpd 时仍然出现该错误。

 # cd /srv/http/redmine
 # bundle install
 ...
 Using <various gems>
 Your bundle is complete!
 Gems in the groups development and test were not installed.
 Use `bundle show [gemname]` to see where a bundled gem is installed.
 # ruby --version
 ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
 # gem --version
 2.0.0
 # rake --version
 rake, version 10.0.4
 # bundle --version
 Bundler version 1.3.5

我正在运行 archlinux,这不是我使用 arch 设置的第一个网络服务器,而是第一次尝试使用 ruby​​ 和 lighttpd。我不能使用 unicorn 或 webrick,因为我需要 SSL 用于 redmine...

【问题讨论】:

    标签: ruby redmine lighttpd


    【解决方案1】:

    如果您需要 SSL,请在上游使用带有 unicorn 或 puma 甚至 webrick 的 nginx。

    【讨论】:

    • 你有什么方法吗?
    • 这听起来不像是开箱即用......我该如何使用它?我对红宝石一无所知,我正在设置服务器,我不开发它们。我想知道为什么没有人知道我的问题的答案。我不仅在这里问过,还在 redmine 和 archlinux 论坛上问过。这是我得到的唯一答案。为什么运行一个简单的 ROR 应用程序这么难???
    • 跑起来不难,只是用lighttpd开始不寻常。每个人都在使用 nginx+unicorn 或 apache+passenger,你问这些人另一个实际使用率为 0.000001% 的解决方案。如果你管理 linux 服务器,你必须知道这条规则。
    • 解决问题的另一个提示:您实际上设置了 webserver + ssl 支持。并为上游设置监听器。你甚至不需要知道一些关于红宝石的知识。只需设置网络服务器 + ssl。之后,程序员可以运行 unicorn、puma、thin 任何东西,只需指向您将在网络服务器中定义的确切端口。就是这样。
    • 其实我的问题不是 ssl,但 lighttpd 不会从 redmine 开始。我想知道为什么。我认为应该可以使用 lighttpd(我想使用而不是 bloadware apache),因为即使 lighttpd 也使用 redmine:redmine.lighttpd.net
    猜你喜欢
    • 2013-10-04
    • 1970-01-01
    • 1970-01-01
    • 2016-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 2012-10-25
    相关资源
    最近更新 更多