克隆了一个 repo,但是 运行 进入了无效的选项键:page_cache_directory= (RuntimeError)?

Cloned a repo, but running into Invalid option key: page_cache_directory= (RuntimeError)?

我克隆了一个名为 Publify 的 Ruby 项目(一个 open-source 博客平台。)但是,当我 运行 rails 服务器时,我收到以下错误(我有 copy-pasted 图片下方的信息)>

DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <class:Simple> at /home/ubuntu/workspace/publify-master/lib/i18n_interpolation_deprecation.rb:24)
=> Booting Thin
=> Rails 5.0.3 application starting in development on http://0.0.0.0:8080
=> Run `rails server -h` for more startup options
Exiting
/usr/local/rvm/gems/ruby-2.2.2/gems/actionpack-5.0.3/lib/action_controller/railtie.rb:60:in `block (3 levels) in <class:Railtie>': Invalid option key: page_cache_directory= (RuntimeError)

然后是一系列 "From:" 语句(如图所示。)

我的open repo 在这里,如果你想看一看:https://gitlab.com/AvBloom98/publify. I did some work to update the gems and such, because they were failing before, thus it is not 1-to-1 with the original Publify Github (found here: https://github.com/publify/publify)

Publify gem 正在其 configuration but page caching has been deprecated and removed from Rails 4 中设置页面缓存目录。

但是,您可以通过添加 actionpack-page_caching gem into the project, as documented in the Rails guides. From this issue 恢复页面缓存支持 我假设 gem 也会 运行 在 Rails 5 中很好.