简体   繁体   English

捆绑exec rake资产:生成的文件预编译问题

[英]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.

相关问题 捆绑exec rake资产:预编译 - bundle exec rake assets:precompile 捆绑exec rake资产:生成的application.js文件的预编译问题 - bundle exec rake assets:precompile issue with the generated application.js file 命令捆绑exec rake asset:precompile错误 - error with the command bundle exec rake assets:precompile 捆绑exec rake资产:预编译失败 - bundle exec rake assets:precompile fails 捆绑exec rake资产:预编译-不断失败 - bundle exec rake assets:precompile - keeps failing 捆绑包执行佣金资产:在开发环境中预编译失败 - bundle exec rake assets:precompile fails in Dev Environment bundle exec rake assets:预编译失败,带有“意外令牌” - bundle exec rake assets:precompile fails with `unexpected token` 捆绑包执行佣金前资产后,OpsWorks部署失败:预编译 - OpsWorks deploy failed after bundle exec rake assets:precompile bundle exec rake assets:precompile - 数据库配置没有指定适配器 - bundle exec rake assets:precompile - database configuration does not specify adapter Rails 4,Capistrano 3在捆绑exec rake资产期间失败:预编译并返回rake stdout:Nothing - Rails 4, Capistrano 3 fail during bundle exec rake assets:precompile and returns rake stdout: Nothing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM