我正在安装 gitlab 并按照 Gitlab 安装指南的所有说明进行操作。一切正常,但在“初始化数据库并激活高级功能”步骤失败了!
https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
我收到此错误消息。
rake aborted!
uninitialized constant Rack::Attack
/home/git/gitlab/config/application.rb:82:in `<class:Application>'
/home/git/gitlab/config/application.rb:13:in `<module:Gitlab>'
/home/git/gitlab/config/application.rb:12:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
在 application.rb 文件中,我按照说明中的说明取消了该行的注释。
# Enable rack attack middleware
# Find and uncomment the line 'config.middleware.use Rack::Attack'