我的公司正在评估bitbucket作为我们的中央VCS。 我们目前使用gitlab 7.13.4。 我们已经寻找了一种自动化的方式将我们所有的gitlab回购迁移到bitbucket,但我的search已经空了。 每次做这个事情都有很多例子,但是没有任何事情可以做到这一点。 通过数百个回购,我们希望使用一个具有良好可靠性的stream程。 作为奖励有一种方法来自动迁移组和权限?
我使用rake任务为GitLab 6.8.2创build备份。 gitlab-rake gitlab:backup:create 在/etc/gitlab/gitlab.rb我添加了以下行: gitlab_rails['backup_keep_time'] = 60 这应该修剪超过60秒的备份。 我的期望是,第二次运行gitlab:backup:create会在60秒内删除第一个备份。 尽pipe输出的最后一行是 删除旧的备份…跳过 我如何configurationGitLab去实际删除旧的备份?
道歉,如果这不是正确的堆栈交换。 我有一个GitLab安装。 它被安装在只有几天的gitolite安装的顶部,我认为这个非标准的设置是我的问题的根源,但我不能把它钉住。 问题很简单:后接收钩不会被解雇。 这可以防止在GitLab中出现“项目活动”。 问题如下所示: $ git push #… error: cannot run hooks/post-receive: No such file or directory 钩子存在 后接收钩子/符号链接存在并且是可执行的: -rwxr-xr-x 1 git git 470 Oct 3 2012 .gitolite/hooks/common/post-receive lrwxrwxrwx 1 git git 45 Oct 3 2012 repositories/project.git/hooks/post-receive -> /home/git/.gitolite/hooks/common/post-receive 它是可执行的由GitLab gitlab用户可以执行这个脚本(我已经删除了/dev/nullredirect,并在空白input中input'OK'作为输出): sudo su – gitlab -c /home/git/.gitolite/hooks/common/post-receive OK GitLab可以find它 GitLab正在寻找钩子在正确的位置: $ grep hooks […]
目前,我正在运行一个Gitlab实例(v6.7.3)和一个DigitalOcean VPS上的Ghost -powered个人博客,其中512mb(最低端)由nginx提供 。 直到最近我都无法运行,因为Gitlab未能开始,抱怨内存不足。 我通过在VPS(1GB)上启用交换来解决问题(至less是暂时的)。 主要的问题似乎是,Gitlab产生了Sidekiq的25(!)个实例,每个实例占用我记忆的30%,如htop所示。 我在SF上发现了一个关于configurationGitlab使用较less的Sidekiq工作者的问题,但是没有得到一个被接受的回应。 我的问题是:用最低的内存占用量运行Gitlab的configuration是什么? 也许我不能减less这25名Sidekiq工作人员,但我可以做一些其他的工作来减less内存占用。 我的VPS仅供私人使用,我的Gitlab上有5或6个项目,每天最多需要5或6次提交,所以实际运行的最轻的configuration对我来说已经足够了。 我的博客也很less有点击。
现在,我有我的Ubuntu服务器上运行的gitlab和gitolite。 但是,这台服务器太慢,我的公司希望将服务器移动到另一台机器。 有没有办法将gitlab和gitolite服务器(整个文件,用户和设置)移动到另一台机器上? 再次安装和创build所有用户和存储库将是我的最后select。 先谢谢你。
似乎有很多问题和指导,指示如何设置nginxredirecthttp请求到https。 许多已经过时了,或者只是错了。 # MANAGED BY PUPPET upstream gitlab { server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; } # setup server with or without https depending on gitlab::gitlab_ssl variable server { listen *:80; server_name gitlab.localdomain; server_tokens off; root /nowhere; rewrite ^ https://$server_name$request_uri permanent; } server { listen *:443 ssl default_server; server_name gitlab.localdomain; server_tokens off; root /home/git/gitlab/public; ssl on; ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; ssl_certificate_key […]
我已经使用https://about.gitlab.com/downloads/中的默认软件包在Ubuntu 12.04上设置了Gitlab {编辑澄清} 我已经build立了Apache来代理并运行安装在端口8888上的nginx服务器(或者我认为)。 由于我已经安装了Apache,我必须在localhost上运行nginx:8888。 问题是,所有图像(如头像)现在都从http://localhost:8888 ,而且所有的结帐url也是localhost – 而不是使用我的域名。 如果我更改/etc/gitlab/gitlab.rb使用该url,那么Gitlab停止工作,并给出503。 任何想法如何告诉Gitlab什么URL呈现给世界,即使它真的在本地主机上运行? /etc/gitlab/gitlab.rb看起来像: # Change the external_url to the address your users will type in their browser external_url 'http://my.local.domain' redis['port'] = 6379 postgresql['port'] = 2345 unicorn['port'] = 3456 和/opt/gitlab/embedded/conf/nginx.conf看起来像: server { listen localhost:8888; server_name my.local.domain; [更新] 如果我不指定localhost:8888作为external_url,它看起来像nginx仍在监听错误的端口。 我在/var/log/gitlab/nginx/error.log发现了这个 2014/08/19 14:29:58 [emerg] 2526#0: bind() to 0.0.0.0:80 failed […]
在Debian 8.0上,我试图让Apache 2.4.10pipe理一个GitLab CE 7.10 Omnibus作为虚拟主机。 设定和目标 Apache 2已经安装并运行了几个虚拟主机,它们看起来都像vhost.example.com 。 我想configurationApache和GitLab,以便git.example.com被Apache处理以显示GitLab Web界面。 为此,我遵循https://stackoverflow.com/a/25809733/4352108中所述的过程。 问题 我可以在git.example.com上使用GitLab的主页git.example.com ,但是我无法访问任何其他资源,如CSS或图标。 Apache日志显示了四个错误: [Sun May 10 20:24:57.146329 2015] [authz_core:error] [pid 4141] [client 1.2.3.4:80] AH01630: client denied by server configuration: /opt/gitlab/embedded/service/gitlab-rails/public/assets/application-TOKEN.css, referer: http://git.example.com/ 在search网页并尝试了几个变化,我卡在这里。 有没有人有一个如何解决这个问题的想法? configuration文件 另外这里是我使用的“有趣的”configuration文件: /etc/apache2/sites-enabled/git.conf : <VirtualHost git.example.com:80> ServerAdmin [email protected] DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public ServerName git.example.com ServerAlias git.example.com ProxyPreserveHost On <Location […]
最近我安装了我的局域网的gitlab。 当我的用户尝试创build他们的账户时,他们正在收到电子邮件确认消息。 现在我的问题是我想禁用整个电子邮件确认function和一切。 对于那个什么文件我必须在gitlabconfiguration文件中configuration如何做到这一点? 哪些选项我必须改变我在ruby非常差,请详细解释。
我使用GitLab社区版8.2,并希望添加后提交挂钩。 我用权限创build了文件path_to_project.git / custom_hooks / post-commit $ ls -l1 custom_hooks/post-commit -rwxr-xr-x 1 git git 45 Dec 14 21:31 custom_hooks/post-commit 和内容 #!/bin/bash echo "test custom" > /tmp/hook 如下所述: http : //doc.gitlab.com/ce/hooks/custom_hooks.html 但它不起作用(通过Web界面进行检查)。 我也尝试了'正常的'git钩子放置(project.git / hooks / post-commit),但它也不起作用。