The above problem is related to the configuration settings in the config / environment / production.rb file. If you add the line below, the problem will be solved. config.serve_static_assets = true
But this line is deprecated from rails 4 and will be removed in rails 5.0. To do this, a new configuration parameter is introduced, as shown below. You will receive a warning as shown below, but static files will be downloaded.
: config.serve_static_assets config.serve_static_files, ( public ). serve_static_assets Rails 5.0. , .
, , config.serve_static_assets true, .