应用 Rails 它仅适用于开发模式,而不进入生产
我为Rails创建了一个超级简单的应用程序
当我在开发模式下启动应用程序时,它可以正常工作,并注册所有内容
但是当我转向时 RailsEnv production,
我收到这个错误的页面
并且完全没有任何东西 error.log, 也不 production.log, 然而B. access.log 我看到请求已注册。
我用 Ubuntu x64 Jaunty.
rails test
cd test/
script/generate controller home index
rm public/index.html
# uncommented map.root :controller => "home" in config/routes.rb
当我在开发模式下启动应用程序时,它可以正常工作,并注册所有内容
<virtualhost *:80="">
DocumentRoot /opt/rails/test/public
ErrorLog /opt/rails/test/log/error.log
CustomLog /opt/rails/testlog/access.log combined
RailsEnv development
</virtualhost>
但是当我转向时 RailsEnv production,
RailsEnv production
我收到这个错误的页面
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
并且完全没有任何东西 error.log, 也不 production.log, 然而B. access.log 我看到请求已注册。
我用 Ubuntu x64 Jaunty.
没有找到相关结果
已邀请:
1 个回复
八刀丁二
赞同来自:
http://github.com/rails/ssl_re ... aster
此外,团队 «rm public / index.php» 必须是 «rm public / index.html».
我会检查登录 / var / log / apache2, 确保你没有错过一些东西。 我知道杂志必须在您的可自定义目录中,但 ...