Heroku 部署 - RoR - "Detected manifest file, assuming assets were compiled locally"

Heroku deployment - RoR - "Detected manifest file, assuming assets were compiled locally"

RoR 菜鸟这里有一个关于 Heroku 部署的小问题。当我部署到 Heroku 时,资产管道没有被编译。我尝试了很多在线提供的建议,但没有成功。在我的构建中,我看到 "Detected manifest file, assuming assets were compiled locally" 消息并且我的页面加载时出现 aplication.js 和 application.css 抛出以下错误。

http://*masked-app-name*/assets/application-ae1bb08c08ec882f8d7005ca99addcfef89e47173e0ba1971862de4357d10918.js 
  Failed to load resource: the server responded with a status of 404 (Not Found)

Production.rb

CareForMe::Application.configure do
  config.cache_classes = true  
  config.eager_load = true
  config.consider_all_requests_local = false  
  config.action_controller.perform_caching = true  
  config.serve_static_assets = true
  config.assets.compress = true  
  config.assets.js_compressor = Uglifier.new(:beautify => true) if defined? Uglifier   
  config.assets.compile = true   
  config.assets.digest = true   
  config.assets.version = '1.0'   
  config.assets.raise_runtime_errors = true   
  config.log_level = :debug 
  config.i18n.fallbacks = true   
  config.active_support.deprecation = :notify   
  config.log_formatter = ::Logger::Formatter.new 
end

application.rb

require File.expand_path('../boot', __FILE__)
require "active_record/railtie" require "action_controller/railtie"
require "action_mailer/railtie" require "sprockets/railtie"
Bundler.require(*Rails.groups)
module CareForMe   
  class Application < Rails::Application
  end 
end

非常感谢任何意见。如果这是重复的问题,我深表歉意,但到目前为止,我对在线信息所做的所有尝试都没有成功。 :)

谢谢

我之前遇到过类似的问题。我所做的只是将其添加到我的 config/application.rb

config.assets.initialize_on_precompile = false