[英]Heroku Rails setup ActionView::Template::Error ( isn't precompiled):
I am trying to setup my first Heroku hosted rails app and am running into what I believe is a precompile/pipeline issue. 我正在尝试设置我的第一个Heroku托管rails应用程序,并且遇到了我认为是预编译/管道问题。
I've followed all the appropriate steps: 我已经遵循所有适当的步骤:
bundle exec rake assets:precompile
git add public/assets
git commit -m "vendor compiled assets"git push heroku
But I am getting the following error: 不过,我收到以下错误:
ActionView::Template::Error ( isn't precompiled):
Note there is a blank (" ") before "isn't precompiled" in the text of the error message - so it is not specifying the name of the missing precompiled file! 请注意,错误消息文本中的“未预编译”之前有一个空格(“”)-因此,它没有指定丢失的预编译文件的名称!
Has anyone run into this before? 有人遇到过吗?
It was due to Carrierwave and one of my Models not having a default image. 这是由于Carrierwave和我的其中一个模型没有默认图像所致。 Not sure I understand why this was an issue - but adding this solved it:
不确定我是否理解这是一个问题-但添加此操作可以解决该问题:
https://github.com/jnicklas/carrierwave#providing-a-default-url
See this previous thread: 参见此先前的线程:
http://stackoverflow.com/questions/11068190/actionviewtemplateerror-isnt-precompiled?lq=1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.