如何讓rails在production mode下直接在網頁顯示錯誤訊息?(像development mode那樣)

# 修改 config/environments/production.rb
# 找到config.consider_all_requests_local
config.consider_all_requests_local = true # 預設是false

重開web server,就完成啦!


- - - - - - - -

How to showing error message on web just time in production mode, like in development mode?

# in config/environments/production.rb
# find "config.consider_all_requests_local"
config.consider_all_requests_local = true # default is false

restart web server, and you're done

留言

這個網誌中的熱門文章

神之雫 的 雫 (雨下) 怎麼唸、意思是什麼

[已解決] 入肉 (肏) 的注音/怎麼唸?意思是什麼?(兒童不宜)

哆啦A夢放上任何東西都無違和感、彷彿有音效的滑鼠墊 這裡買得到