我的Rails應用程序在嘗試通過cloudfront實施頁面緩存時未加載css或js文件。創建Cloudfront發佈之後,爲什麼rails應用程序無CSS渲染?
我使用Heroku的,我設置CloudFront的根據這些說明:
https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn
完成:「要創建CloudFront的分佈,你需要一個Amazon AWS帳號登錄後,你可以去。 CloudFront控制面板並選擇「創建分配」。當提示輸入方法時,選擇「Web」。
然後我加入到軌production.rb:config.action_controller.asset_host = "d373p52igaakhgm9.cloudfront.net"
什麼可能出了毛病www.anthonygalli.com?我想我遵循了所有的步驟。