无法通过乘客上运行的Apache2的RoR应用程序(Fedena) [英] Unable to run RoR app (Fedena) on Apache2 via Passenger

查看:207
本文介绍了无法通过乘客上运行的Apache2的RoR应用程序(Fedena)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有我想感谢延伸到你的帮助有需要的人士首先。愿上帝保佑你们。

First of all I would like to extend my gratitude to you for your help for the needy. May God bless you all.

我想在我们学校的内部Web服务器上托管的回报率上的的Apache 的应用程序。
的配置如下:

I am trying to host a RoR application on Apache on an internal web server in our school. The configuration is as follows:


  • Ubuntu服务器12.04.1 64位版本。

  • 的Apache2

  • 乘客的Apache

  • PHP5

  • MySQL的

  • 的Ruby 1.8.7

  • 的Rails 2.3.5

我可以运行的的WEBrick 的的RoR应用程序(的 Fedena 的),没有任何问题(即通过脚本/ server命令),但是当我尝试运行的 Fedena 的通过上的的Apache 乘客的,它会引发错误未初始化不断授权。

I could run the RoR application(Fedena) on Webrick without any issues (ie. via script/server command) However when I try to run Fedena on Apache via Passenger, it throws the error "uninitialized constant Authorization".

下面是截图:

http://i46.tinypic.com/mj67v7.png

我会很高兴,如果你能帮助我。

I would be glad if you could help me with this.

推荐答案

谢谢大家...
我在您的帮助了它。

Thanks everyone... I figured it out with your help.

我添加了以下code。在底部的配置/的boot.rb

I added the following code at the bottom of config/boot.rb

  class Rails::Boot
  def run
    load_initializer

    Rails::Initializer.class_eval do
      def load_gems
        @bundler_loaded ||= Bundler.require :default, Rails.env
      end
    end

    Rails::Initializer.run(:set_load_path)
  end
end

我也跟着在轨打捆的说明2.3 说明

这篇关于无法通过乘客上运行的Apache2的RoR应用程序(Fedena)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆