[英]bundle exec rake assets:precompile issue with the generated files
I could successfully host the fulcrum app on phusion but I am going nuts with some configuration issues. 我可以在phusion上成功托管支点应用程序,但是我在某些配置问题上大失所望。
1) For some reason there are no assets in the public folder but if I generate them using rake they have the weird digest attached to the suffix and the app says can't find file if I dont rename them like logo-30879aa42d1b343434a40fda1b11734b.png to logo.png 1)出于某种原因,公用文件夹中没有资产,但是如果我使用rake生成它们,则它们的后缀附有怪异的摘要,如果我不将其像logo-30879aa42d1b343434a40fda1b11734b.png重命名为,应用程序会说找不到文件logo.png
2) I renamed the assets and now the js files are not picking the root of the url ie http://example.com/fulcrum/assets/logo-30879aa42d1b343434a40fda1b11734b.png should be the url but the url is being set as http://example.com/assets/logo-30879aa42d1b343434a40fda1b11734b.png (missing root) 2)我重命名了资产,现在js文件没有选择URL的根,即http://example.com/fulcrum/assets/logo-30879aa42d1b343434a40fda1b11734b.png应该是url,但是url被设置为http: //example.com/assets/logo-30879aa42d1b343434a40fda1b11734b.png (缺少根目录)
Could anyone kindly point out my configuration mistake? 谁能指出我的配置错误?
I figured out the problem was in my production.rb 我发现问题出在我的production.rb中
config.action_controller.asset_host was causing the trouble config.action_controller.asset_host引起了麻烦
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.