Git Gitlab 5.1 创建空项目没效果

kuuyee · May 28, 2013 · Last by kuuyee replied at May 28, 2013 · 5706 hits

我最近正在研究 gitlab,之前安装了 5.0.1,用生产模式创建一个空库是 OK 的,可以在 repositories 目录下看到对应的目录,但是当我升级到 5.1 或 5.2 的时候,创建空库好像没效果,没有看到相应的目录被创建呀,我也大概定位了下代码:

@project.creator = current_user

//好像只判断了导入已有资源库的情况,创建新库好像没处理 # Import project from cloneable resource if @project.valid? && @project.import_url.present? shell = Gitlab::Shell.new puts 'kuuyee ====> start create 002'; if shell.import_repository(@project.path_with_namespace, @project.import_url) # We should create satellite for imported repo @project.satellite.create unless @project.satellite.exists? true else @project.errors.add(:import_url, 'cannot clone repo') end end

但是我创建这个空库的 wiki 是 OK 的,可否对于这个疑问给与解答,非常感谢! 我的系统是 rhel5.5 ruby1.9.3 git1.8.3 参考安装文档:https://github.com/gitlabhq/gitlabhq/blob/5-1-stable/doc/install/installation.md 启动命令:sudo -E -u git -H bundle exec rails s -e development

光子 qq:1443216253

saito 已经给了答复:

不知道你有没有执行过 rake gitlab:check

可以看一下返回的情况..

还有关注一下自己 sidekiq 的启动状况。Ruby China 上有一些反应了 sidekiq 问题造成的没法创建新库的情况。

执行:

sudo -E -u git -H bundle exec rake sidekiq:start RAILS_ENV=production

应该就 OK 了! 谢谢 saito

You need to Sign in before reply, if you don't have an account, please Sign up first.