2012-04-15 62 views
2

我有一个Rails 3.0.7应用程序,在Webrick下的Windows 7的开发模式下工作正常。在Apache和乘客上的Rails应用程序

我开始将它移动到基于ESX 4.2,CentOS 6.2,Apache 2.2.15,Ruby 1.9.3p125,Rails 3.2.3和乘客3.0.11和mysql 14.14的生产主机上。各种安装似乎已经干净。捆绑安装很干净,我运行了bundle exec rake db:migrate,它也运行干净。

我是新来的Apache /乘客/铁路环境,可能不知道如何正确配置所有这些。我已经阅读了许多关于这个问题的文章,并且遵循了那些取得一些进展的想法,但是我仍然有一个错误。据我了解,如果您将vituralhost块添加到Apache配置文件,它应该启动passenger,并发现轨应用程序和生活应该很开心,但事实并非如此。

VituralHost块中,我在DocumentRootDirectory的路径末尾都有公开;选项包括:

Ruby (Rack) application could not be started 
These are the possible causes: 

    There may be a syntax error in the application's code. Please check for such errors and fix them. 
    A required library may not installed. Please install all libraries that this application requires. 
    The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application. 
    A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service. 

Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem. 

Error message: 
    git://github.com/mark-moseley/linecache (at master) is not checked out. Please run `bundle install` (Bundler::GitError) 
Exception class: 
    PhusionPassenger::UnknownError 
Application root: 
    /var/www/html/Scarfs 

我确实有linecache19宝石行,ruby-debug-base19

所有 的AllowOverride所有 选项-MultiViews

从Firefox一个Win7的主机I输入172.16.2.226并获得允许和Gemfile中的ruby-debug19。我有一种感觉,各种各样的版本不能很好地融合在一起?我关注linecache错误并在Gemfile中指定linechace19?但我需要linecache19来解决不同的问题。

我也曾尝试停止httpd服务,并在独立模式下运行与passenger

passenger start -a 172.16.2.226 -p 80 -d -e development 

我得到同样的“乘客无法启动”错误。

如果我将端口更改为3000,则在Firefox中出现502 Bad Gateway错误。

任何人都有想法,我哪里出错了?

+0

你知道它应该是“VirtualHost”,是吗? – 2012-04-15 18:15:14

+0

编码的值是正确的,只是他的问题上的胖手指。 – user1334133 2012-04-17 05:16:54

回答

0

你能让你的应用程序开始在服务器上使用webrick吗?你如何进行捆绑安装?

相关问题