嗨我想在www.cybercellar.com上使用config.cache_classes = true
,在dev2013.cybercellar.com上使用config.cache_classes = false
我该如何解决这个问题?两者都在生产模式下运行。config.cache_classes = true只适用于ruby on rails上的生产模式下的certian域名
我想这在我的/app/config/enviroments/production.rb但无济于事
if == "www.cybercellar.com"
config.cache_classes = true
else
config.cache_classes = false
end
,但我得到这个错误
undefined local variable or method `request' for main:Object (NameError)
请求对象不能从配置文件访问。启动服务器时没有HTTP请求。 – gparis