0
当我的Rails应用程序遇到内部服务器错误时,它会按照您应该的方式提供500页,但它不向日志文件输出任何内容。生产服务器上的Rails没有记录任何内容
毫不夸张地说,我的整个production.log文件如下:
Connecting to database specified by database.yml
Migrating to CreateStates (20130221172503)
Migrating to CreateCarriers (20130225200710)
Migrating to DeviseCreateUsers (20130226212033)
Migrating to CreateAccounts (20130226221603)
Migrating to CreateAccountsUsers (20130226221735)
Connecting to database specified by database.yml
Connecting to database specified by database.yml
Connecting to database specified by database.yml
谁能帮我诊断呢?像往常一样运行Apache和Passenger,Ruby 1.9.3,Rails 3.2.12。
你没有在开发模式或任何东西上运行,是吗? – 2013-03-13 23:29:35
我在Capistrano部署文件和Apache http-vhosts.conf文件中都指定了生产环境。更重要的是,production.log是我日志目录中唯一的文件。 – JellicleCat 2013-03-13 23:32:07
我假设你在开发环境中的应用程序正确生成日志?你可以粘贴你的环境/ production.rb文件(请删除所有注释行,并屏蔽敏感信息,如密码) – Benj 2013-03-13 23:45:09