在清单文件中,我们有
//= require handlebars.runtime
在开发中它工作正常,但在 heroku 上我们得到一个错误。
ActionView::Template::Error (couldn't find file 'handlebars.runtime'
(in /app/app/assets/javascripts/application.js:11)):
1: = javascript_include_tag 'application'
2: = javascript_include_tag "#{params[:controller]}/#{params[:action]}" if js_file_exists?("#{params[:controller]}/#{params[:action]}")
3:
4: -# Append your own using content_for :javascripts
app/views/layouts/_javascripts.html.haml:1:in `_app_views_layouts__javascripts_html_haml__1848877102237238272_50436400'
app/views/layouts/landing.html.haml:35:in `block in _app_views_layouts_landing_html_haml__157312279246923607_45507260'
app/views/layouts/landing.html.haml:3:in `_app_views_layouts_landing_html_haml__157312279246923607_45507260'
我们没有进行预编译,并且在 heroku 上的编译中没有任何错误。关于如何使其正常工作的任何想法?