title: Rails 5 Assets Not Loading in Production
body: <p>I recently updated a few packages in my Rails application and now my assets aren't being served. Instead, I get the following error: </p>
  
  <pre><code>Failed to load resource: the server responded with a status of 404 (Not Found)
  </code></pre>
  
  <p>My assets are precompiled: </p>
  
  <p><strong>assets.rb</strong></p>
  
  <pre><code># Be sure to restart your server when you modify this file.
  
  # Version of your assets, change this if you want to expire all your assets.
  Rails.application.config.assets.version = '1.0'
  
  # Add additional assets to the asset load path
  # Rails.application.config.assets.paths &lt;&lt; Emoji.images_path
  
  # Precompile additional assets.
  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
  # Rails.application.config.assets.precompile += %w( search.js )
  Rails.application.config.assets.precompile += %w(ckeditor/*)
  Rails.application.config.assets.precompile += %w(ckeditor/config.js)
  Rails.application.config.assets.precompile += %w( *.js ^[^_]*.css *.css.erb )
  </code></pre>
  
  <p><strong>application.rb</strong></p>
  
  <pre><code>require_relative 'boot'
  
  require 'rails/all'
  
  # Require the gems listed in Gemfile, including any gems
  # you've limited to :test, :development, or :production.
  Bundler.require(*Rails.groups)
  
  
  module DeployTest
    class Application &lt; Rails::Application
      # Settings in config/environments/* take precedence over those specified here.
      # Application configuration should go into files in config/initializers
      # -- all .rb files in that directory are automatically loaded.
      config.assets.precompile += Ckeditor.assets
      config.assets.precompile += %w( ckeditor/* )
      config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
      config.active_record.default_timezone = :local
      config.time_zone = 'Eastern Time (US &amp; Canada)'
    end
  end
  </code></pre>
  
  <p>Before telling me to turn on compiling my assets, please understand that this is
  a <a href="https://stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-not">horrible idea</a>. Thank you for any advice</p>
  
  <p><strong>UPDATE:</strong> I got it to work by adding:</p>
  
  <pre><code>  config.assets.digest = true
  </code></pre>
  
  <p>to my <code>config/environments/staging.rb</code> file. Weird how I didn't need it before</p>