1

最近我通过删除所有引导资产并重新安装它来升级twitter-bootstrap-rails 。该应用程序现在在开发模式下工作正常,但是当我发布到 heroku 时它不起作用,并且出现“出现问题..”页面错误。所以我想我的某些东西没有正确配置为生产模式,或者我在尝试修复这个错误时搞砸了一些配置。(即环境设置)

这是我在本地生产模式下运行时得到的结果。我还将在此处粘贴环境设置。有人可以告诉我设置有什么问题吗?

me@home:~/workspace/myappname$ rails s -e production
=> Booting WEBrick
=> Rails 3.2.8 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

[DEVISE] Devise.apply_schema is deprecated and has no effect. Please remove it.


[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.

DEPRECATION WARNING: ActiveAdmin::Dashboard is deprecated and will be removed in the next version
[2012-09-07 00:16:52] INFO  WEBrick 1.3.1
[2012-09-07 00:16:52] INFO  ruby 1.9.3 (2012-02-16) [i686-linux]
[2012-09-07 00:16:52] INFO  WEBrick::HTTPServer#start: pid=4774 port=3000


Started GET "/" for 127.0.0.1 at 2012-09-07 00:16:59 +0100
Processing by PhotosController#index as HTML
  Rendered collection (0.0ms)
  Rendered photos/index.html.erb within layouts/application (53.0ms)
Compiled bootstrap_and_overrides.css  (1006ms)  (pid 4774)
Compiled application.css  (1018ms)  (pid 4774)
  Rendered layouts/_head.html.erb (5352.6ms)
Completed 500 Internal Server Error in 5529ms

ActionView::Template::Error (undefined method `[]' for nil:NilClass
  (in /home/me/workspace/myappname/app/assets/stylesheets/application.css)):
    8:  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    9:  <![endif]-->
    10:         <!-- Le styles -->
    11:         <%= stylesheet_link_tag "application", :media => "all" %>
    12:         <%= javascript_include_tag "application" %>
    13:         <link href="images/favicon.ico" rel="shortcut icon">
    14:         <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
  app/views/layouts/_head.html.erb:11:in `_app_views_layouts__head_html_erb___806530288_90965610'
  app/views/layouts/application.html.erb:3:in `_app_views_layouts_application_html_erb___795323884_92505740'
  app/controllers/photos_controller.rb:8:in `index'
4

0 回答 0