Ruby on rails 4 为什么heroku(rails4应用程序)中有时不加载资产?
我已经安装了“rails_12 factor”gem来服务heroku中的静态资产。在推送应用程序之前,我已经在生产和开发环境中预编译了这些资产。对于这个问题,我在“application.css”中添加了以下行Ruby on rails 4 为什么heroku(rails4应用程序)中有时不加载资产?,ruby-on-rails-4,heroku,Ruby On Rails 4,Heroku,我已经安装了“rails_12 factor”gem来服务heroku中的静态资产。在推送应用程序之前,我已经在生产和开发环境中预编译了这些资产。对于这个问题,我在“application.css”中添加了以下行 @import url(http://fonts.googleapis.com/css?family=Special+Elite); 但有时在heroku中无法正确加载资产。请给我一些建议 我还在“application.rb”中配置了 此行是否将资产持久加载到heroku中 con
@import url(http://fonts.googleapis.com/css?family=Special+Elite);
但有时在heroku中无法正确加载资产。请给我一些建议
我还在“application.rb”中配置了
此行是否将资产持久加载到heroku中
config.assets.initialize_on_precompile = false