3

我正在安装 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' 
4

1 回答 1

4

请注意,从问题 5245开始:

Rack Attack 是 6-2 稳定版的新功能,将于 10 月 22 日发布。

话虽如此,请阅读“ doc/security/rack_attack.md”:

取消注释findconfig.middleware.use Rack::Attack中的行是不够的config/application.rb

其他步骤是:

于 2013-10-16T06:27:26.867 回答