2 sxf 824 sxf_824 于 2015.05.28 17:20 提问

gitlab安装出现的问题

sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production

应答如下:

rake aborted!
SyntaxError: /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/doorkeeper-2.1.3/lib/doorkeeper/engine.rb:4: unknown type of %string
app.config.filter_parameters += %i(client_secret code token)
^
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/doorkeeper-2.1.3/lib/doorkeeper/engine.rb:4: syntax error, unexpected $end
app.config.filter_parameters += %i(client_secret code token)
^
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in require'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in
block in require'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in load_dependency'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in
require'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/doorkeeper-2.1.3/lib/doorkeeper.rb:2:in <top (required)>'
/home/gitlab/gitlab/config/application.rb:6:in
'
/home/gitlab/gitlab/Rakefile:5:in require'
/home/gitlab/gitlab/Rakefile:5:in
'
(See full trace by running task with --trace)

3个回答

devmiao
devmiao   Ds   Rxr 2015.05.28 17:22

syntax error, unexpected $end
语法错误,没有写end

sxf_824
sxf_824 需要在哪里写, 这都是gitlab自己的代码我没动过
2 年多之前 回复
sxf_824
sxf_824   2015.05.28 17:31

需要在那里写, 这都是gitlab自己的代码我没动过

kidawinterII
kidawinterII   2015.09.17 00:48

我也遇到这样的问题了,不知道楼主怎么解决的?

Csdn user default icon
上传中...
上传图片
插入图片