0
我的Rails应用程序正在打破,当我检查Heroku的日志,我得到如下:Heroku的Rails的预编译错误
ActionView::Template::Error (mixpanel.js isn't precompiled):
2013-07-22T21:05:04.591703+00:00 app[web.1]: app/views/layouts/application.html.erb:21:in `_app_views_layouts_application_html_erb__2368959071303779648_52715720'
2013-07-22T21:05:04.587459+00:00 app[web.1]: Completed 500 Internal Server Error in 67ms
我已经运行rake assets:clean
和RAILS_ENV=production bundle exec rake assets:precompile
作为Heroku的文档指示我做的。
我manifest.yml
看起来是这样的:
first.jpeg: first-4ac2f941b0baf7a92561c83f3c1f74a1.jpeg
first/index.jpeg: first-4ac2f941b0baf7a92561c83f3c1f74a1.jpeg
second.jpeg: second-3e53e9e8f0968d1ec4611dc26f5a6c24.jpeg
second/index.jpeg: second-3e53e9e8f0968d1ec4611dc26f5a6c24.jpeg
twitter-login-button.png: twitter-login-button-6cfce5ace5f0a7831b13bb42281ef40a.png
twitter-login-button/index.png: twitter-login-button-6cfce5ace5f0a7831b13bb42281ef40a.png
application.js: application-74466be8c91632da68d8b2d6418aeb1c.js
application/index.js: application-74466be8c91632da68d8b2d6418aeb1c.js
application.css: application-d71cbf890e592c3a75ec56da2585da45.css
application/index.css: application-d71cbf890e592c3a75ec56da2585da45.css
jquery.min.map: jquery.min-6c267bfd2b3f36e6edccb2e584934c1c.map
jquery/index.min.map: jquery.min-6c267bfd2b3f36e6edccb2e584934c1c.map
而且我app/assets/javascripts
文件有下列文件:
- 的application.js
- mixpanel.js(即ISN”的一个t预编译)
- ga.js(谷歌分析) 个
- landings.js.coffee
- firebase.js
最后,我application.js
manfiest有这里面:
//= require jquery
//= require jquery_ujs
//= require_tree .
不知道如何解决这个问题呢?我发现的所有文档迄今都没有帮助。我猜这是我忽略的简单事情。
问题解决了!谢谢! –