客运只有在发展中运行的Rails [英] Rails with passenger only runs in development

查看:110
本文介绍了客运只有在发展中运行的Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我对我们的网络服务器中的一个问题。
我会尽力解释尽可能明确,但我不是100%知道服务器的所有配置。

有运行旁边的海誓山盟(blcc_ preprod和blcc_prod)2个站点,所以在站点启用,阿帕奇这个我有一个文件咨委会是这样的:

 <虚拟主机*:80>
    的DocumentRoot的/ opt / DN /咨委会/ WWW
    RailsBaseURI / blcc_ preprod
    RailsBaseURI / blcc_prod
    RailsEnv生产
< /虚拟主机>

我的配置/环境/ production.log(来自)看起来像这样(我删除了所有的评论,是因为它的布局弄乱)

  config.cache_classes = TRUEconfig.action_controller.consider_all_requests_local = FALSE
config.action_controller.perform_caching =真
config.action_view.cache_template_loading =真config.log_level =:调试

奇怪的是,从几个月前我的生产日志的日期,所以事情是真的错了。

有人能帮忙吗?如果您需要更多的信息,只问。

谢谢!

编辑:
error.log中来自Apache显示了事件的正常输出到服务器(此处的情况是,Web服务器通过框架插入到另一家企业(Java)的服务器)
access.log里是空的。

从other_vhosts_access.log内容后,我们冲浪IP / blcc_ preprod是以下

  blcc.localdomain:80 192.168.21.194  -   -  [25 /月/ 2010:08:33:04 +0200]GET / blcc_ preprod
HTTP / 1.1500 594 - Mozilla的/ 4.0(兼容; MSIE 6.0; Windows NT的5.1; SV1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)


解决方案

使用RoR的3.x的?结果
尝试

  RackEnv发展

  RackEnv生产

Hey, I have a problem on one of our webservers. I'll try to explain it as clear as possible, but I'm not 100% aware of all the configuration of the server.

There are 2 sites running next to eachother (blcc_preprod and blcc_prod), so in the 'sites-enabled' of apache this i have a file 'blcc' like this:

<VirtualHost *:80>
    DocumentRoot /opt/dn/blcc/www
    RailsBaseURI /blcc_preprod
    RailsBaseURI /blcc_prod
    RailsEnv production
</VirtualHost>

My config/environments/production.log (from both) looks like this(I removed all comments, because it messes with the layout)

config.cache_classes = true

config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching             = true
config.action_view.cache_template_loading            = true

config.log_level = :debug

The weird thing is, that my production log dates from months ago, so something is really wrong.

Could someone help? If you need more info, just ask.

Thanks!

Edit: Error.log from apache show the normal output for a event to the server (the situation here is that the webserver plugs in to another business (java) server via a framework) Access.log is empty

Content from other_vhosts_access.log after we surf to ip/blcc_preprod is the following

blcc.localdomain:80 192.168.21.194 - - [25/May/2010:08:33:04 +0200] "GET/ blcc_preprod
HTTP/1.1" 500 594 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
CLR 1.1.4322; .NET CLR 2.0.50727)"

解决方案

Using RoR 3.x ?
Try

RackEnv development  

or

RackEnv production  

这篇关于客运只有在发展中运行的Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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