我在Ubuntu服务器上安装了GitLab.一切似乎工作正常,除了我不能推/拉/克隆到服务器/从服务器.
当我按下时,我收到一般错误消息:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我已经尝试了几个小时的谷歌搜索,但我似乎无法找到问题.
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)
运行良好,全面运行!
我可以通过SSH连接到git@adress.adress我得到:
PTY allocation request failed on channel 0
Welcome to GitLab, Anonymous!
Run Code Online (Sandbox Code Playgroud)
当我做:
ssh git@adress.adress "ls /location/of/git/dir"
Run Code Online (Sandbox Code Playgroud)
我明白了:
Not allowed command
Run Code Online (Sandbox Code Playgroud)
网站正在运行,当我在网站上创建一个存储库时,它出现在/ home/git/repository /
但我仍然无法推动它.
我按照这个指南:
https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
以及让它在apache上运行的指南:
http://shanetully.com/2012/08/running-gitlab-from-a-subdirectory-on-apache/
经过几个小时的调试后,我终于弄明白了,我知道配置有一个简单的问题.
由于第二个指南提到如何使用相对url在apache上设置gitlab,你实际上必须在gitlab中做一些更多的配置.我取消了关于相对url:s unicorn.rb的行,并在gitlab-shell/config中添加了我的整个URL(带子目录).
之前:
http://web-adress.com/
Run Code Online (Sandbox Code Playgroud)
后:
http://web-adress.com/subdomain/
Run Code Online (Sandbox Code Playgroud)
现在它很棒.
| 归档时间: |
|
| 查看次数: |
20601 次 |
| 最近记录: |