Phusion Passenger,mod_rails Rails 2.3 问题
“应用程序在启动期间退出(即在评估 config/environment.rb 期间)。错误消息可能已写入 Web 服务器的日志文件。请检查 Web 服务器的日志文件(即不是(Rails)应用程序的日志文件)以找出应用程序退出的原因。”
当我尝试访问我的测试站点时收到上述错误消息。
config/* 的权限是
-rw-r--r-- 1 www-data root 2011 年 8 月 27 日 20:17environment.rb drwxr-xr-x 3 root root 4096 八月 27 20:17 环境 drwxr-xr-x 3 root root 4096 八月 27 20:17 初始值设定项 drwxr-xr-x 3 root root 4096 八月 27 20:17 语言环境 -rw-r--r-- 1 root root 2431 Aug 27 20:17 paths.rb
我也尝试过“root root 2011 Aug 27 20:17environment.rb”,但也没有成功。
我正在运行 Debian GNU/Linux,并且其他 Rails 站点在同一台服务器上运行良好,我尝试从其他站点之一复制设置,但没有任何效果。
"The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message may have been written to the web server's log file. Please check the web server's log file (i.e. not the (Rails) application's log file) to find out why the application exited."
I'm getting the above error message when I try to access my test site.
Permission for config/* is
-rw-r--r-- 1 www-data root 2011 Aug 27 20:17 environment.rb
drwxr-xr-x 3 root root 4096 Aug 27 20:17 environments
drwxr-xr-x 3 root root 4096 Aug 27 20:17 initializers
drwxr-xr-x 3 root root 4096 Aug 27 20:17 locales
-rw-r--r-- 1 root root 2431 Aug 27 20:17 routes.rb
I've tried "root root 2011 Aug 27 20:17 environment.rb" as well but no success either.
I'm running Debian GNU/Linux and have other Rails sites running fine on the same server, I have tried to replicate the setup from one of the other sites, but it's not having any effect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,在杀死乘客和阿帕奇后最终发现:
http://geminstallthat.wordpress.com /2009/03/01/passenger-with-rails-23-application-missingsourcefile/
本质上,问题是对于某些版本的 libapache2-mod-passenger,app/controllers/application.rb 更改为 app/controllers/ application_controller.rb(在Rails 2.3中)爆炸事物(技术术语)。
I encountered this same issue, and after killing passenger and apache ended up finding:
http://geminstallthat.wordpress.com/2009/03/01/passenger-with-rails-23-application-missingsourcefile/
Essentially the issue is for some versions of libapache2-mod-passenger the app/controllers/application.rb change to app/controllers/application_controller.rb (in Rails 2.3) explodes things (technical term).