Ubuntu12.04 Server 直接 rails s 没问题 我是照 ruby-china 的 unicorn.rb 和一系列部署 网站能访问却出现 We're sorry, but something went wrong. 字样。新手求解
遇到问题先看 log 啊
发 log,这么点信息看不出问题在哪
log/production.log
Started GET "/members/sign_in" for 221.3.97.192 at 2012-11-24 23:54:00 +0800 Processing by Devise::SessionsController#new as HTML Rendered devise/sessions/new.html.erb within layouts/application (9.8ms) Completed 500 Internal Server Error in 541ms ActionView::Template::Error (application.css isn't precompiled): 6: <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7: <title><%= content_for?(:title) ? yield(:title) : "å½±åƒæžœå®žä»£ç†å•†ç³»ç»Ÿ" %></title> 8: <%= csrf_meta_tags %> 9: <%= stylesheet_link_tag "application", :media => "all" %> 10: 11: <!-- For third-generation iPad with high-resolution Retina display: --> 12: <!-- Size should be 144 x 144 pixels --> app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb__305599615_80495130'
使用生产环境前要先编译好 assets bundle exec rake assets:precompile
哦,是没 precompile,现在正常了。多谢@yesmeck