ruby-on-rails – ActionView :: Template :: Error(highcharts.
发布时间:2020-12-17 03:38:47 所属栏目:百科 来源:网络整理
导读:嗨再次我正在尝试将我的应用程序部署到heroku但我收到此错误: We're sorry,but something went wrong. 我不知道为什么会发生这种情况,我已经预先编译了资产 bundle exec rake assets:precompile 如果你想在这里看到我的日志: 2012-08-13T16:03:42+00:00 ap
嗨再次我正在尝试将我的应用程序部署到heroku但我收到此错误:
We're sorry,but something went wrong. 我不知道为什么会发生这种情况,我已经预先编译了资产 bundle exec rake assets:precompile 如果你想在这里看到我的日志: 2012-08-13T16:03:42+00:00 app[web.1]: Started GET "/" for 190.242.128.66 at 2012-08-13 16:03:42 +0000 2012-08-13T16:03:42+00:00 app[web.1]: Processing by StaticPagesController#home as HTML 2012-08-13T16:03:42+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (1.7ms) 2012-08-13T16:03:42+00:00 app[web.1]: Completed 500 Internal Server Error in 87ms 2012-08-13T16:03:42+00:00 app[web.1]: 2012-08-13T16:03:42+00:00 app[web.1]: ActionView::Template::Error (highcharts.js isn't precompiled): 2012-08-13T16:03:42+00:00 app[web.1]: 5: <%= stylesheet_link_tag "application",:media => "all" %> 2012-08-13T16:03:42+00:00 app[web.1]: 6: <%= javascript_include_tag "application" %> 2012-08-13T16:03:42+00:00 app[web.1]: 7: <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" %> 2012-08-13T16:03:42+00:00 app[web.1]: 8: <%= javascript_include_tag "highcharts" %> 2012-08-13T16:03:42+00:00 app[web.1]: 9: 2012-08-13T16:03:42+00:00 app[web.1]: 10: <%= csrf_meta_tags %> 2012-08-13T16:03:42+00:00 app[web.1]: 11: </head> 2012-08-13T16:03:42+00:00 app[web.1]: app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___263981703336480791_52466080' 2012-08-13T16:03:42+00:00 app[web.1]: 2012-08-13T16:03:42+00:00 app[web.1]: 2012-08-13T16:03:42+00:00 heroku[router]: GET boiling-bastion-5936.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=326ms status=500 bytes=643 2012-08-13T16:03:43+00:00 heroku[router]: GET boiling-bastion-5936.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=11ms status=200 bytes=0 这是我在github的申请,供您查看 解决方法
取消注释
this line.这应该包括预编译期间的资产
我注意到你实际上在your application.js中使用了需求树,此时,包括它单独变得多余,可能是导致问题的原因. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |