1

我尝试使用此处发布的解决方案:GitLab v5.0 git push questions to fix the ssh keys getting out of sync 问题。

但是,当我在存储库服务器上以&用户的身份运行rake命令时,我收到以下消息:rootgit

root@gitlab /home/git# rake gitlab:shell:setup RAILS_ENV=production --TRACE

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'

rake命令应该如何用于解决同步问题?

4

1 回答 1

1

它可能类似于这个问题 3922

您必须在包含 Rakefile 的 GitLab 安装目录中执行此命令

所以一定要进入 gitlab 目录,在那里你可以看到Rakefile.

于 2013-06-14T20:22:51.760 回答