1

capistrano当我使用in 进行部署时,production出现以下错误。但是在staging我没有收到警告信息。

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/deploy/.rbenv/versions/2.2.0/lib/ruby/2.2.0/tsort.rb:226)

此外,我的 production.rb 和 staging.rb 环境文件都注释了以下行:# config.serve_static_files = true

4

1 回答 1

0

最终我意识到很久以前我添加了一个 gem 来使应用程序在 Heroku 上运行。

离开 heroku 后,该 gem 仍保留在 Gemfile 中并导致错误。我通过删除以下内容来修复它:

gem 'rails_12factor'
于 2015-12-10T13:15:35.407 回答