我有軌4.2工作正常發展,但在生產ENV我有以下警告:資產管道棄用警告tsort.rb:226
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in tsort_each at /home/xxx/.rbenv/versions/2.2.1/lib/ruby/2.2.0/tsort.rb:226)
但是我沒有配置.serve_static_assets在我的應用程序配置。它可能在某處配置。
請幫助如何擺脫這一點。提前致謝。
「配置選項'config.serve_static_assets'已重命名爲'config.serve_static_files' ...請相應地遷移您的配置文件。「所以做它說的。進入你的配置文件並將'serve_static_assets'改爲'serve_static_files'。 –