繁体   English   中英

ActionView :: Template :: Error(rails.png未预编译)

[英]ActionView::Template::Error (rails.png isn't precompiled)

我正在收到页面“我们很抱歉,但是当我尝试加载我的rails应用程序时出现了问题。当我运行时

tail -f log/production.log

我明白了

ActionView::Template::Error (rails.png isn't precompiled)

我跑了

 RAILS_ENV=production rake assets:precompile

从当前目录。

我在这里找到了答案

Ruby on Rails 3.1资产:预编译和图像

在/ current / config / environments中的production.rb文件中将config.assets.compile = false更改为config.assets.compile = true

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM