Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改用于生产资产的路径?我将资产推送到 CDN,但 rails 一直将 /assets/ 放在文件名前面,但这不是 CDN 上的路径。
找到了
config.assets.prefix
http://guides.rubyonrails.org/configuring.html#configuring-assets