I currently have rails 4.2.0. Whenever I try to run rake assets precompile I got this:
DEPRECATION WARNING: The configuration option
config.serve_static_assets
has been renamed toconfig.serve_static_files
to clarify its role (it merely enables serving everything in thepublic
folder and is unrelated to the asset pipeline). Theserve_static_assets
alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from at /Users/santiagocarreno/Desktop/vownu/config/application.rb:22)
I've already change the config.serve_static_assets line to config.serve_static_files but it doesnt work, how can I fix this, this error is not allowing me to update my app on heroku
You just need to run this in the console:
bundle update rails_serve_static_assets
and the warning disappears, it worked for me so I hope help you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.